Bug 129601 - [PATCH] gas silently treats undefined symbols used as immediate as zero
Summary: [PATCH] gas silently treats undefined symbols used as immediate as zero
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: 2
Hardware: xscale
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL: http://sources.redhat.com/cgi-bin/cvs...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-08-10 20:08 UTC by Lennert Buytenhek
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-08-10 20:34:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lennert Buytenhek 2004-08-10 20:08:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510

Description of problem:
See http://marc.theaimsgroup.com/?l=linux-kernel&m=108870136100682&w=2
and http://marc.theaimsgroup.com/?l=linux-kernel&m=108872084823635&w=2
and the thread that they are in.

Basically, the following program:

        .globl  _start
_start:
        add     r0, r0, #UNDEFINED_SYMBOL
        mov     pc, lr

assembles just fine, using zero for UNDEFINED_SYMBOL.  But instead, it
should complain about UNDEFINED_SYMBOL being undefined and abort.

Version-Release number of selected component (if applicable):
2.15.90.0.3-8

How reproducible:
Always

Steps to Reproduce:
   

Additional info:

This problem has been fixed in binutils CVS.  See:

http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/config/tc-arm.c.diff?r1=1.168&r2=1.169&cvsroot=src

Comment 1 Jakub Jelinek 2004-08-10 20:34:15 UTC
Given that Fedora Core is not ported to arm, nor to my knowledge is there
any Fedora Core based ARM disto, I doubt this needs to be fixed
in Fedora Core 2 binutils.
Things fixed in CVS binutils will be in Fedora Core 3.


Note You need to log in before you can comment on or make changes to this bug.