mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
PR27102, gas: "section symbols are already global"
PR 27102 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning message and register symbol error message.
This commit is contained in:
parent
4c0e540e47
commit
dd933805d1
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user