https://sourceware.org/bugzilla/show_bug.cgi?id=19572
Bug ID: 19572 Summary: -Ttext-segment accepts out of range value Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- [hjl@gnu-6 pr19567]$ cat x.S .globl _start _start: #ifdef __x86_64__ mov $_start,%rax mov _start,%rax #else mov $_start,%eax mov _start,%eax #endif [hjl@gnu-6 pr19567]$ make LD=ld gcc -m32 -c -O2 -ffunction-sections -fPIC -o x.o x.S ld -Ttext-segment 0xffffffff80000000 -m elf_i386 -o x x.o objdump -dw x x: file format elf32-i386 Disassembly of section .text: 80000054 <_start>: 80000054: b8 54 00 00 80 mov $0x80000054,%eax 80000059: a1 54 00 00 80 mov 0x80000054,%eax [hjl@gnu-6 pr19567]$ Ld shouldn't accept -Ttext-segment 0xffffffff80000000 for 32-bit ELF. -- 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