bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/3276] Alignment error with static const variable in inline


From: wilson at specifix dot com
Subject: [Bug binutils/3276] Alignment error with static const variable in inline function
Date: 28 Sep 2006 21:30:37 -0000

------- Additional Comments From wilson at specifix dot com  2006-09-28 21:30 
-------
Subject: Re:  New: Alignment error with static const
        variable in inline function

On Thu, 2006-09-28 at 07:42 +0000, jespdj at hotmail dot com wrote:
> g++ outputs the correct assembler code, so the error must be in as or ld.

Or, more likely, in the OS.  Try running objdump -x on your executable.
If the .rdata section has alignment 2**4, then the linker is OK.  It is
your OS (i.e. the loader) that isn't respecting the alignment.

I tried this on an i386-cygwin system, and it looked OK to me.  The
rdata section has the right alignment, and the program worked.  I didn't
do this with binutils-2.17 though.  I used the one I already had.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3276

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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