This is the mail archive of the binutils@sources.redhat.com 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]

Undefined Symbol Error in GAS


Hi !

I'am testing if a can replace the Microtec Compiler by the
GNU assembler.

When I try to assemble the following example I received some error messages (as68 is my 68K cross GAS):

.title "wg1.S"
.text

* .equ fooVar, 10

wg: dc.l 10+fooVar+testVar
wg2: dc.l 10+fooVar


Command line Messages:

wolfgang@linux-se:~/Develop/misc > as68 wg1.S
wg1.S: Assembler messages:
wg1.S:6: Error: undefined symbol fooVar in operation
wg1.S:6: Error: undefined symbol testVar in operation


So when I uncomment the ".equ fooVar" line then there were no error messages any more!!!

My question is:
"Is the GAS unable to handel more than one external reference in one assembler statement ?"

thanks

wolfgang






------------------------------------------------
Wolfgang Gertzen
Micromatik GmbH
57074 Siegen
Tel.:0271/50150
wolfgang.gertzen@micromatik.com






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