This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Can't Resolve External Symbol When Subtracting
- From: "Anthony DeRosa" <ADEROSA at evitechnology dot com>
- To: <binutils at sourceware dot org>
- Date: Fri, 27 Oct 2006 09:31:20 -0400
- Subject: Re: Can't Resolve External Symbol When Subtracting
Is this the wrong mailing list for the question I posted yesterday,
repeated below?
Thanks,
Anthony
>>> "Anthony DeRosa" <ADEROSA@evitechnology.com> 10/26/2006 10:32 am
>>>
After recently upgrading from binutils 2.15.90 to binutils 2.17, I get
the following error with the following code:
#-------------- code snippet ---------------------------------
.extern external_symbol
local_symbol_0:
.half 0x1234
local_symbol_1:
.half 0x5678
some_table:
# this *does* work
.word external_symbol
# this *does* work
.word local_symbol_0 - local_symbol_1
# this does *not* work
.word external_symbol - local_symbol_0
#-------------- reported error ---------------------------------
$ mips-elf-as test.S
test.S: Assembler messages:
test.S:8: Error: can't resolve `external_symbol' {*UND* section} -
``local_symbol_0' {.text section}
#------------------------------------------------------------------
This error did not occur with the previous version of binutils. Why
does this no longer work? What is the workaround?
Thanks,
Anthony