From 3f6f91a2dbedad9a0c8a5c44cbecfee9554827c6 Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 9 Jan 2010 06:07:34 +0000 Subject: [PATCH] PR 11072 * layout.cc (Layout::include_section): Remove .gnu_debuglink sections. --- gold/ChangeLog | 6 ++++++ gold/layout.cc | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gold/ChangeLog b/gold/ChangeLog index 64829720fd..214999bdae 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,9 @@ +2010-01-08 Ian Lance Taylor + + PR 11072 + * layout.cc (Layout::include_section): Remove .gnu_debuglink + sections. + 2010-01-08 H.J. Lu * version.cc (print_version): Change to "Copyright 2010". diff --git a/gold/layout.cc b/gold/layout.cc index a86590932e..dc339d6b5f 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -352,6 +352,11 @@ Layout::include_section(Sized_relobj*, 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: -- 2.11.0