bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/23762] __CTOR_LIST__ should be aligned at 4 bytes for i686-windo


From: martin at martin dot st
Subject: [Bug ld/23762] __CTOR_LIST__ should be aligned at 4 bytes for i686-windows-mingw32
Date: Thu, 11 Oct 2018 19:27:35 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23762

--- Comment #1 from Martin Storsjö <martin at martin dot st> ---
While the conclusion probably is right, I'd like to see more details about why
this happens in this configuration and why it hasn't happened so far.

As far as I can see, ld places __CTOR_LIST__ directly at the end of the .text
section - and in case the .text section isn't exactly a multiple of 4, the -1
at the beginning would be unaligned, and there would be garbage/fillers between
that and the first member from .ctors (which is aligned) - is this what is
happening?

Then why does this not happen in normal setups with GCC, since GCC also does
align the .ctors pointers to 4 bytes?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]