[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/13602] New: gold -Ttext and --section-start=.text mismatch

From: christophe.lyon at st dot com
Subject: [Bug gold/13602] New: gold -Ttext and --section-start=.text mismatch
Date: Wed, 18 Jan 2012 16:25:23 +0000


             Bug #: 13602
           Summary: gold -Ttext and --section-start=.text mismatch
           Product: binutils
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: address@hidden
        ReportedBy: address@hidden
                CC: address@hidden
    Classification: Unclassified

Unlike with BFD ld, GOLD does handle -Ttext=XXX as an alias to

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]