[PATCH 2/8] gas: distinguish local symbol flavors when printing symbols

Jan Beulich jbeulich@suse.com
Fri Mar 27 14:10:57 GMT 2026


Ordinary symbols fulfilling S_IS_LOCAL() criteria aren't the same as local
symbols. Make sure one can tell them apart in print_symbol_value()'s (and
print_expr()'s) output.

--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -3189,7 +3189,7 @@ print_symbol_value_1 (FILE *file, symbol
 	fprintf (file, " frag %p", locsym->frag);
       if (locsym->flags.resolved)
 	fprintf (file, " resolved");
-      fprintf (file, " local");
+      fprintf (file, " locsym");
     }
   else
     {



More information about the Binutils mailing list