[binutils-gdb] gas: distinguish local symbol flavors when printing symbols

Jan Beulich jbeulich@sourceware.org
Fri Apr 10 06:44:08 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=48c4de8c73ae98c3e4c6181b83a9f32c06790b48

commit 48c4de8c73ae98c3e4c6181b83a9f32c06790b48
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Apr 10 08:42:10 2026 +0200

    gas: distinguish local symbol flavors when printing symbols
    
    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.

Diff:
---
 gas/symbols.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/symbols.c b/gas/symbols.c
index 42a0779e321..8b911ae86a8 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -3218,7 +3218,7 @@ print_symbol_value_1 (FILE *file, symbolS *sym)
 	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-cvs mailing list