[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: as: multiple definitions is now error

From: Nick Clifton
Subject: Re: as: multiple definitions is now error
Date: Wed, 24 Jan 2007 14:38:34 +0000
User-agent: Thunderbird (X11/20061215)

Hi Fabian,

as.exe --defsym PPC603=1 ...

.set PPC603, 1  # or PPC603 = 1

file:32: Error: symbol `PPC603' is already defined

The docs states:

"You may .set a symbol many times in the same assembly."

Although the docs never promise that --defsym will behave in the same way as .set.

So know is that a bug?

Not a bug as such, more of a mis-feature. Please could you try out the attached patch which I think will resolve the problem for you.


Index: gas/as.c
RCS file: /cvs/src/src/gas/as.c,v
retrieving revision 1.69
diff -c -3 -p -r1.69 as.c
*** gas/as.c    7 Jun 2006 11:27:57 -0000       1.69
--- gas/as.c    24 Jan 2007 14:35:52 -0000
*************** main (int argc, char ** argv)
*** 1122,1127 ****
--- 1122,1128 ----
        sym = symbol_new (defsyms->name, absolute_section, defsyms->value,
+       S_SET_VOLATILE (sym);
        symbol_table_insert (sym);
        next = defsyms->next;
        free (defsyms);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]