]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcc/mingw: Align `.refptr.` to 8-byte boundaries for 64-bit targets
authorLIU Hao <lh_mouse@126.com>
Sat, 29 Mar 2025 14:47:54 +0000 (22:47 +0800)
committerJonathan Yong <10walls@gmail.com>
Sun, 30 Mar 2025 02:45:21 +0000 (02:45 +0000)
commit8d42378acdf1a011420ba78685f7a6c79808c881
tree351ee80e3dc9ef67084ae57bc3e4f66f2c6b817c
parentcc63163f0a17f80b2bee1b174197793d163680c1
gcc/mingw: Align `.refptr.` to 8-byte boundaries for 64-bit targets

Windows only requires sections to be aligned on a 4-byte boundary. This used
to work because in binutils the `.rdata` section is over-aligned to a 16-byte
boundary, which will be fixed in the future.

This matches the output of Clang.

Signed-off-by: LIU Hao <lh_mouse@126.com>
Signed-off-by: Jonathan Yong <10walls@gmail.com>
gcc/ChangeLog:
* config/mingw/winnt.cc (mingw_pe_file_end): Add `.p2align`.
gcc/config/mingw/winnt.cc