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.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com




_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to