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:
Alan Modra 2021-01-04 11:16:21 +10:30
parent 4c0e540e47
commit dd933805d1
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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