bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/37] New: [intel_syntax] can't reference global symbols having c


From: Brian R. Gaeke
Subject: [Bug gas/37] New: [intel_syntax] can't reference global symbols having certain names
Date: Thu, 26 Feb 2004 22:07:45 -0600
User-agent: Mutt/1.5.6i

Hello,
I wanted to call this bug I reported to your attention, in case
'unassigned at sources dot redhat dot com' is not being read by anyone. 
-Brian Gaeke

----- Forwarded message from brg at dgate dot org <address@hidden> -----

Date: 26 Feb 2004 23:01:42 -0000
From: brg at dgate dot org <address@hidden>
To: address@hidden
Subject: [Bug gas/37] New: [intel_syntax] can't reference global symbols having 
certain names

I'm using today's CVS gas:
> ./gas/as-new --version
GNU assembler 2.15.90 20040226
Copyright 2002 Free Software Foundation, Inc.
[etc.]

The errors I get are typically as follows:
> ./gas/as-new /tmp/foo.s
/tmp/foo.s: Assembler messages:
/tmp/foo.s:7: Error: missing or invalid immediate expression `' taken as 0
/tmp/foo.s:7: Error: suffix or operands invalid for `mov'
/tmp/foo.s:8: Error: missing or invalid immediate expression `' taken as 0
/tmp/foo.s:8: Error: suffix or operands invalid for `call'

Here is the code: All it tries to do is call and take the address of a function
called "byte". 


> cat /tmp/foo.s
.intel_syntax
.text
byte:
        RET

foo:
        MOV EAX, OFFSET byte
        CALL byte
        RET
------------------

You can get similar bad behavior by replacing byte with
any of: (word dword xword offset mov ret call).

-- 
           Summary: [intel_syntax] can't reference global symbols having
                    certain names
           Product: binutils
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: brg at dgate dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=37

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.

----- End forwarded message -----

-- 
Brian R. Gaeke, brg at dgate.org -- GnuPG encrypted mail gleefully accepted




reply via email to

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