From a36814e1455093fc9ebfcdf6ef39bb0cf3d447da Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 2 Oct 2024 11:19:50 +0200 Subject: [PATCH] riscv: align .preinit_array (bug 32228) The section contains an array of pointers, so it should be aligned to pointer size. --- sysdeps/riscv/start.S | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/riscv/start.S b/sysdeps/riscv/start.S index ede186ef23..fd6f1ca038 100644 --- a/sysdeps/riscv/start.S +++ b/sysdeps/riscv/start.S @@ -87,6 +87,7 @@ load_gp: ret .section .preinit_array,"aw" + .align PTRLOG .dc.a load_gp /* Define a symbol for the first piece of initialized data. */