diff options
author | Nick Clifton <nickc@redhat.com> | 2022-10-11 15:28:10 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-10-11 15:29:03 +0100 |
commit | 12509439a1844a1f1095ac4e9d70b59b539e952c (patch) | |
tree | 19b6c3b392ad3770de159024fe8668a81ebc9a9f /gas/symbols.h | |
parent | babcfd75883790c13de37c86f15de7d4bca582de (diff) | |
download | gdb-12509439a1844a1f1095ac4e9d70b59b539e952c.zip gdb-12509439a1844a1f1095ac4e9d70b59b539e952c.tar.gz gdb-12509439a1844a1f1095ac4e9d70b59b539e952c.tar.bz2 |
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.
Diffstat (limited to 'gas/symbols.h')
-rw-r--r-- | gas/symbols.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/symbols.h b/gas/symbols.h index c33a28f..0282197 100644 --- a/gas/symbols.h +++ b/gas/symbols.h @@ -92,6 +92,7 @@ extern void copy_symbol_attributes (symbolS *, symbolS *); /* Get and set the values of symbols. These used to be macros. */ extern valueT S_GET_VALUE (symbolS *); +extern valueT S_GET_VALUE_WHERE (symbolS *, const char *, unsigned int); extern void S_SET_VALUE (symbolS *, valueT); extern int S_IS_FUNCTION (symbolS *); |