diff options
author | Alan Modra <amodra@gmail.com> | 2021-01-04 11:16:21 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-01-04 18:58:15 +1030 |
commit | dd933805d10b0035659dfec40630c30a0b33aa4c (patch) | |
tree | 0cff4132de6f1c0f7e018bbc0be85587e383b973 /gas | |
parent | 4c0e540e47e8ea26e20246c33c744306944b4cb8 (diff) | |
download | gdb-dd933805d10b0035659dfec40630c30a0b33aa4c.zip gdb-dd933805d10b0035659dfec40630c30a0b33aa4c.tar.gz gdb-dd933805d10b0035659dfec40630c30a0b33aa4c.tar.bz2 |
PR27102, gas: "section symbols are already global"
PR 27102
* symbols.c (S_SET_EXTERNAL): Revise section symbol warning
message and register symbol error message.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/symbols.c | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index b38c379..4c370a6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,11 @@ 2021-01-04 Alan Modra <amodra@gmail.com> + PR 27102 + * symbols.c (S_SET_EXTERNAL): Revise section symbol warning + message and register symbol error message. + +2021-01-04 Alan Modra <amodra@gmail.com> + PR 27101 * read.c (s_align): Use a large enough type for "align" to hold the result of get_absolute_expression. diff --git a/gas/symbols.c b/gas/symbols.c index f6e4b71..289ccbe 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -2431,14 +2431,13 @@ S_SET_EXTERNAL (symbolS *s) if (s->bsym->flags & BSF_SECTION_SYM) { /* Do not reassign section symbols. */ - as_warn (_("section symbols are already global")); + as_warn (_("can't make section symbol global")); return; } #ifndef TC_GLOBAL_REGISTER_SYMBOL_OK if (S_GET_SEGMENT (s) == reg_section) { - as_bad ("can't make register symbol `%s' global", - S_GET_NAME (s)); + as_bad (_("can't make register symbol global")); return; } #endif |