This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] retain file symbols in object files even with--strip-local-absolute
- From: "Jan Beulich" <JBeulich at novell dot com>
- To: <binutils at sources dot redhat dot com>
- Date: Thu, 03 Jun 2004 11:46:14 +0200
- Subject: [PATCH] retain file symbols in object files even with--strip-local-absolute
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;