This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc >= 3.3.3-3 and binutils .rdata alignment

This is just a heads up for anyone compiling with gcc >= 3.3.3-3 and
<= current Cygwin binutils (2.15.91 20040725).  The issue fixed in the
reference below may also affect constant long long or double derrived data
structures since -malign-double is gcc's default on Cygwin:

Note that so far I have only experienced this problem with a custom
compiled gcc 3.4.3 in combination with -mfpmath=sse, so this is somewhat
speculative.  But, if gcc 3.3.3-3 really does put all constants in .rdata,
it seems likely that those data types described above may get misaligned
when sections from differing objects are linked together.

If you experience this mis-match bug, you will see a SIGSEGV due to a load
from a misaligned address.

HTH somebody...

Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]