]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
riscv: align .preinit_array (bug 32228)
authorAndreas Schwab <schwab@suse.de>
Wed, 2 Oct 2024 09:19:50 +0000 (11:19 +0200)
committerAndreas Schwab <schwab@suse.de>
Wed, 2 Oct 2024 11:04:30 +0000 (13:04 +0200)
The section contains an array of pointers, so it should be aligned to
pointer size.

sysdeps/riscv/start.S

index ede186ef23b35b5af7c1c4ddf04b12519ed26e42..fd6f1ca038b6da44d7e3ad51a9f197505e7fa6e2 100644 (file)
@@ -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.  */