This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PR 6848 fix
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: amodra at bigpond dot net dot au
- Cc: binutils at sourceware dot org, dave at hiauly1 dot hia dot nrc dot ca
- Date: Thu, 21 Aug 2008 08:05:08 -0700 (PDT)
- Subject: Re: PR 6848 fix
Alan,
This patch broke my HPPA (32 bit) build. Compiling a simple hello
world program with GCC results in the following error message from
the GNU assembler:
$ as x.s
x.s: Assembler messages:
x.s:17: Error: redefined symbol cannot be used on reloc
x.s:20: Error: redefined symbol cannot be used on reloc
Line 17 is the .ENTRY and line 20 is .EXIT. The same assembly file will
assemble with no errors on an earlier gas.
The complete PA32 assembly language file is:
.LEVEL 1.1
.SPACE $PRIVATE$
.SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
.SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
.SPACE $TEXT$
.SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
.SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
.IMPORT $global$,DATA
.IMPORT $$dyncall,MILLICODE
.SPACE $TEXT$
.NSUBSPA $CODE$
.align 4
.EXPORT main,ENTRY,PRIV_LEV=3,RTNVAL=GR
main:
.PROC
.CALLINFO FRAME=0,NO_CALLS
.ENTRY
bv %r0(%r2)
ldi 0,%r28
.EXIT
.PROCEND