http://sourceware.org/bugzilla/show_bug.cgi?id=13048
Summary: Invalid address for x32 Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sources.redhat.com ReportedBy: hjl.to...@gmail.com [hjl@gnu-6 tmp]$ cat ilp32-6.s .globl _start _start: mov $_start,%rax mov _start,%rax [hjl@gnu-6 tmp]$ as --x32 -o ilp32-6.o ilp32-6.s [hjl@gnu-6 tmp]$ ld -m elf32_x86_64 -Ttext-segment 0x80000000 ilp32-6.o [hjl@gnu-6 tmp]$ objdump -dw a.out a.out: file format elf32-x86-64 Disassembly of section .text: 80000054 <_start>: 80000054: 48 c7 c0 54 00 00 80 mov $0xffffffff80000054,%rax 8000005b: 48 8b 04 25 54 00 00 80 mov 0xffffffff80000054,%rax [hjl@gnu-6 tmp]$ Linker should detect address overflow. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils