<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://sourceware.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="4.4+"
          urlbase="http://sourceware.org/bugzilla/"
          
          maintainer="overseers@sourceware.org"
>

    <bug>
          <bug_id>14187</bug_id>
          
          <creation_ts>2012-05-30 22:51:00 +0000</creation_ts>
          <short_desc>gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss</short_desc>
          <delta_ts>2012-08-08 20:51:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>binutils</product>
          <component>gold</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike Frysinger">vapier</reporter>
          <assigned_to name="Ian Lance Taylor">ian</assigned_to>
          <cc>ccoutant</cc>
    
    <cc>heiko</cc>
    
    <cc>jeffall</cc>
          <cf_gcchost></cf_gcchost>
          <cf_gcctarget></cf_gcctarget>
          <cf_gccbuild></cf_gccbuild>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55510</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Frysinger">vapier</who>
    <bug_when>2012-05-30 22:51:49 +0000</bug_when>
    <thetext>$ echo &apos;&apos; | 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
&lt;works&gt;
$ ld test.o -o a.out --section-start=.text=7C00
&lt;works&gt;

this does not match the GNU linker (or its documentation) where it says:
  -Tbss=org
  -Tdata=org
  -Ttext=org
    Same as --section-start, with &quot;.bss&quot;, &quot;.data&quot; or &quot;.text&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56602</commentid>
    <comment_count>1</comment_count>
    <who name="">jeffall</who>
    <bug_when>2012-07-27 07:53:51 +0000</bug_when>
    <thetext>I found the same bug. This makes it so that you cannot compile Grub while gold is installed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>