* PR27102, gas: "section symbols are already global"
@ 2021-01-04 10:25 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2021-01-04 10:25 UTC (permalink / raw)
To: binutils
PR 27102
* symbols.c (S_SET_EXTERNAL): Revise section symbol warning
message and register symbol error message.
diff --git a/gas/symbols.c b/gas/symbols.c
index f6e4b718ef..289ccbee8e 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
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-04 10:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 10:25 PR27102, gas: "section symbols are already global" Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).