From dd933805d10b0035659dfec40630c30a0b33aa4c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 4 Jan 2021 11:16:21 +1030 Subject: PR27102, gas: "section symbols are already global" PR 27102 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning message and register symbol error message. --- gas/symbols.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gas/symbols.c') 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 -- cgit v1.1