]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Bring over from mainline:
authorIan Lance Taylor <ian@airs.com>
Wed, 13 Jan 2010 16:01:05 +0000 (16:01 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 13 Jan 2010 16:01:05 +0000 (16:01 +0000)
2010-01-08  Ian Lance Taylor  <iant@google.com>

PR 11072
* layout.cc (Layout::include_section): Remove .gnu_debuglink
sections.

gold/ChangeLog
gold/layout.cc

index 126a51d966e833302dbab9b55f580756ea7fb1d7..d9c28706e867f25a6b977b68c28a8cdf290b8bed 100644 (file)
@@ -1,3 +1,12 @@
+2010-01-13  Ian Lance Taylor  <iant@google.com>
+
+       Bring over from mainline:
+       2010-01-08  Ian Lance Taylor  <iant@google.com>
+
+       PR 11072
+       * layout.cc (Layout::include_section): Remove .gnu_debuglink
+       sections.
+
 2009-11-06  Ian Lance Taylor  <iant@google.com>
 
        Bring over from mainline:
index 47b2867a8bea36449b53e9a1c1a3e1196bbc4ba2..f9f378e8932e2e899f04f121f918c5e1b0a53a08 100644 (file)
@@ -1,6 +1,6 @@
 // layout.cc -- lay out output file sections for gold
 
-// Copyright 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -349,6 +349,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: