http://sourceware.org/bugzilla/show_bug.cgi?id=13602
Bug #: 13602
Summary: gold -Ttext and --section-start=.text mismatch
Product: binutils
Version: 2.22
Status: NEW
Severity: normal
Priority: P2
Component: gold
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Unlike with BFD ld, GOLD does handle -Ttext=XXX as an alias to
--section-start=.text=XXX.
Using GCC+GOLD to compile & link a sample gold.c, I can observe:
$ gcc -o gold1 -m32 gold.c -static -m32 -Wl,-Ttext=0x00010000
$ gcc -o gold2 -m32 gold.c -static -m32 -Wl,--section-start,.text=0x00010000
$ objdump -p gold1 gold2
gold1: file format elf32-i386
Program Header:
LOAD off 0x00001000 vaddr 0x00010000 paddr 0x00010000 align 2**12
[...]
gold2: file format elf32-i386
Program Header:
LOAD off 0x00000000 vaddr 0x0000f000 paddr 0x0000f000 align 2**12
The same test with GCC+BFD-ld reports the same addresses with both options.
--
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
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils