This is the mail archive of the
cygwin
mailing list for the Cygwin project.
gcc >= 3.3.3-3 and binutils .rdata alignment
- From: Brian Ford <ford at vss dot fsi dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 23 Sep 2004 15:43:32 -0500
- Subject: gcc >= 3.3.3-3 and binutils .rdata alignment
- Reply-to: cygwin at cygwin dot com
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:
http://sources.redhat.com/ml/binutils/2004-09/msg00230.html
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: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/