From: Andreas Schwab Date: Wed, 2 Oct 2024 09:19:50 +0000 (+0200) Subject: riscv: align .preinit_array (bug 32228) X-Git-Tag: glibc-2.41~605 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a36814e1455093fc9ebfcdf6ef39bb0cf3d447da;p=thirdparty%2Fglibc.git riscv: align .preinit_array (bug 32228) The section contains an array of pointers, so it should be aligned to pointer size. --- 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. */