PR 6848 fix

Steve Ellcey sje@cup.hp.com
Thu Aug 21 15:05:00 GMT 2008


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



More information about the Binutils mailing list