[PATCH v2] bfd/{pe,pei}-x86_64: Decrease preferred section alignment from 16 to 4

LIU Hao lh_mouse@126.com
Sat Mar 29 17:10:55 GMT 2025


在 2025-3-29 21:30, LIU Hao 写道:
> Attached is a revised patch, with testsuits updated. The alignment of `.rdata` has been increased from 4 
> to 8 because of a potential bug in GCC (commented in code). Test results of current master, the previous 
> patch, and this new patch, are also attached.

I suddenly realize that x86-64 supports transparent unaligned reads. As `.refptr` exists in a read-only 
memory, even it's potentially misaligned it won't break in any way. If that's acceptable I can propose a 
third patch.



-- 
Best regards,
LIU Hao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20250330/14c0daaa/attachment.sig>


More information about the Binutils mailing list