gold alignment for 64-bit target in 32-bit binary
David Miller
davem@davemloft.net
Wed Apr 16 11:46:00 GMT 2008
More information about the Binutils mailing list
Wed Apr 16 11:46:00 GMT 2008
- Previous message (by thread): [PATCH] CR16 target: configure.ac]]
- Next message (by thread): gold alignment for 64-bit target in 32-bit binary
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
If you try to link for a 64-bit target in a 32-bit gold binary, the output views are not aligned enough so we die with a SIGBUS on platforms like sparc. Simple sparc test case: -------------------- test.s -------------------- .text .globl _start _start: nop -------------------- test.2 -------------------- bash$ gcc -m64 -c -o test.o test.s bash$ ./ld-new -o test test.o Bus error (core dumped) bash$ It seems things are 4-byte aligned when they need to be 8-byte aligned.
- Previous message (by thread): [PATCH] CR16 target: configure.ac]]
- Next message (by thread): gold alignment for 64-bit target in 32-bit binary
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list