Bug 129601

Summary: [PATCH] gas silently treats undefined symbols used as immediate as zero
Product: [Fedora] Fedora Reporter: Lennert Buytenhek <buytenh>
Component: binutilsAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 2Keywords: EasyFix, Patch
Target Milestone: ---   
Target Release: ---   
Hardware: xscale   
OS: Linux   
URL: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/config/tc-arm.c.diff?r1=1.168&r2=1.169&cvsroot=src
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-10 20:34:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.