aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-01-08 21:07:34 +0000
committerIan Lance Taylor <ian@airs.com>2010-01-08 21:07:34 +0000
commit6b7dd3f3b1290b8249efc3b062a4b9f1a463a1cc (patch)
tree1ad6e19ad416f0755d10e88e2483e2cd3d0e66b3 /gold/layout.cc
parent36c50e63be36f6ea563138d0f7b54ff6d2c358fc (diff)
downloadgdb-6b7dd3f3b1290b8249efc3b062a4b9f1a463a1cc.zip
gdb-6b7dd3f3b1290b8249efc3b062a4b9f1a463a1cc.tar.gz
gdb-6b7dd3f3b1290b8249efc3b062a4b9f1a463a1cc.tar.bz2
PR 11072
* layout.cc (Layout::include_section): Remove .gnu_debuglink sections.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r--gold/layout.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index a865909..dc339d6 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -352,6 +352,11 @@ Layout::include_section(Sized_relobj<size, big_endian>*, const char* name,
if (is_prefix_of(".gnu.lto_", name))
return false;
}
+ // The GNU linker strips .gnu_debuglink sections, so we do too.
+ // This is a feature used to keep debugging information in
+ // separate files.
+ if (strcmp(name, ".gnu_debuglink") == 0)
+ return false;
return true;
default: