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>
|
2021-01-04 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 27101
|
PR 27101
|
||||||
|
@ -2431,14 +2431,13 @@ S_SET_EXTERNAL (symbolS *s)
|
|||||||
if (s->bsym->flags & BSF_SECTION_SYM)
|
if (s->bsym->flags & BSF_SECTION_SYM)
|
||||||
{
|
{
|
||||||
/* Do not reassign section symbols. */
|
/* Do not reassign section symbols. */
|
||||||
as_warn (_("section symbols are already global"));
|
as_warn (_("can't make section symbol global"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifndef TC_GLOBAL_REGISTER_SYMBOL_OK
|
#ifndef TC_GLOBAL_REGISTER_SYMBOL_OK
|
||||||
if (S_GET_SEGMENT (s) == reg_section)
|
if (S_GET_SEGMENT (s) == reg_section)
|
||||||
{
|
{
|
||||||
as_bad ("can't make register symbol `%s' global",
|
as_bad (_("can't make register symbol global"));
|
||||||
S_GET_NAME (s));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user