This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]