riscv: align .preinit_array (bug 32228)

The section contains an array of pointers, so it should be aligned to
pointer size.
This commit is contained in:
Andreas Schwab 2024-10-02 11:19:50 +02:00
parent 5e8cfc5d62
commit a36814e145

View 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. */