bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/14187] New: gold incorrectly requires hexadecimals to start wi


From: vapier at gentoo dot org
Subject: [Bug gold/14187] New: gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss
Date: Wed, 30 May 2012 22:51:49 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=14187

             Bug #: 14187
           Summary: gold incorrectly requires hexadecimals to start with
                    0x with -Ttext/-Tdata/-Tbss
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: gold
        AssignedTo: address@hidden
        ReportedBy: address@hidden
                CC: address@hidden
    Classification: Unclassified


$ echo '' | gcc -x c - -o test.o -c
$ ld test.o -o a.out -Ttext 7C00
ld: fatal error: -Ttext: invalid option value (expected an integer): 7C00
$ ld test.o -o a.out -Ttext 0x7C00
<works>
$ ld test.o -o a.out --section-start=.text=7C00
<works>

this does not match the GNU linker (or its documentation) where it says:
  -Tbss=org
  -Tdata=org
  -Ttext=org
    Same as --section-start, with ".bss", ".data" or ".text" as the
sectionname.

  --section-start=sectionname=org
    ...  org must be a single hexadecimal integer; for compatibility with other
linkers, you may omit the leading 0x usually associated with hexadecimal
values.

-- 
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]