[PATCH] retain file symbols in object files even with --strip-local-absolute
Jan Beulich
JBeulich@novell.com
Thu Jun 3 09:45:00 GMT 2004
For the purpose of identifying source files without additional debug
info, these symbols should not be eliminated by means of
--strip-local-absolute. Built and regression tested on
i686-pc-linux-gnu.
2004-06-03 Jan Beulich <jbeulich@novell.com>
* gas/symbols.c: While discarding ordinary local absolute
symbols
when --strip-local-absolute is in effect, retain file symbols.
---
/home/jbeulich/src/binutils/mainline/2004-06-03.09.12/gas/symbols.c 2004-05-11
17:53:47.000000000 +0200
+++ 2004-06-03.09.12/gas/symbols.c 2004-06-03 10:08:56.118633248
+0200
@@ -1812,7 +1812,7 @@
return 1;
if (flag_strip_local_absolute
- && (flags & BSF_GLOBAL) == 0
+ && (flags & (BSF_GLOBAL|BSF_FILE)) == 0
&& bfd_get_section (s->bsym) == absolute_section)
return 1;
More information about the Binutils
mailing list