This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
line number tracking for local labels
- To: binutils at sources dot redhat dot com
- Subject: line number tracking for local labels
- From: Ben Elliston <bje at redhat dot com>
- Date: Mon, 17 Sep 2001 16:14:45 +1000 (EST)
Here is a simple (fairly generic) test case that can be exercised by a
native i386 assembler:
.text
.global foo
foo:
call 0f
nop
nop
nop
# should be 0:
1:
ret
Since there is no local label "0", the assembler emits:
foo.s: Assembler messages:
foo.s:12: Error: local label `"0" (instance number 1 of a fb label)' is not defined
It would be nice if the error message showed the site of the reference
to the label rather than the last line of the file, where the search
begins for the label. Is there sufficient context tracking in GAS to
make this possible?
Ben