]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Re: Error: attempt to get value of unresolved symbol `L0'
authorNick Clifton <nickc@redhat.com>
Tue, 11 Oct 2022 14:28:10 +0000 (15:28 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 11 Oct 2022 14:29:03 +0000 (15:29 +0100)
commit12509439a1844a1f1095ac4e9d70b59b539e952c
tree19b6c3b392ad3770de159024fe8668a81ebc9a9f
parentbabcfd75883790c13de37c86f15de7d4bca582de
Re: Error: attempt to get value of unresolved symbol `L0'

* symbols.c (S_GET_VALUE): If the unresolved symbol is the fake
label provide a more helpful error message to the user.
(S_GET_VALUE_WHERE): Like S_GET_VALUE, but includes a file/line
number for error reporting purposes.
* symbols.h (S_GET_VALUE_WHERE): Prototype.
* write.c (fixup_segment): Use S_GET_VALUE_WHERE.
gas/ChangeLog
gas/symbols.c
gas/symbols.h
gas/write.c