Update list of debug sections for --strip-debug-xxx options.
authorCary Coutant <ccoutant@google.com>
Wed, 26 Nov 2014 22:41:46 +0000 (14:41 -0800)
committerCary Coutant <ccoutant@google.com>
Wed, 26 Nov 2014 22:41:46 +0000 (14:41 -0800)
Add .debug_gdb_scripts, .debug_gnu_pubnames, .debug_gnu_pubtypes,
and .debug_str_offsets to lists of sections to strip or keep
when stripping debug info.

gold/
* layout.cc (gdb_sections): Keep .debug_gdb_scripts and
.debug_str_offsets; strip .debug_gnu_pubnames and
.debug_gnu_pubtypes.
(lines_only_debug_sections): Strip all four new sections.

gold/ChangeLog
gold/layout.cc

index 3c9b75cc493b4ee2e6626bd892d1c15b8f96cb8c..2da4d01143e87c8340b756ee8be2835315fbb002 100644 (file)
@@ -1,3 +1,10 @@
+2014-11-26  Cary Coutant  <ccoutant@google.com>
+
+       * layout.cc (gdb_sections): Keep .debug_gdb_scripts and
+       .debug_str_offsets; strip .debug_gnu_pubnames and
+       .debug_gnu_pubtypes.
+       (lines_only_debug_sections): Strip all four new sections.
+
 2014-11-26  Jing Yu  <jingyu@google.com>
 
        * aarch64.cc (Relocate::tls_desc_gd_to_ie): Set ldr target
index 7cbbe39b87d590927038190aa94045fc218a0507..4e60f8ec2b58e0ffcefc55ff8135eba68edd04c4 100644 (file)
@@ -524,6 +524,7 @@ static const char* gdb_sections[] =
   "addr",         // Fission extension
   // "aranges",   // not used by gdb as of 7.4
   "frame",
+  "gdb_scripts",
   "info",
   "types",
   "line",
@@ -532,8 +533,11 @@ static const char* gdb_sections[] =
   "macro",
   // "pubnames",  // not used by gdb as of 7.4
   // "pubtypes",  // not used by gdb as of 7.4
+  // "gnu_pubnames",  // Fission extension
+  // "gnu_pubtypes",  // Fission extension
   "ranges",
   "str",
+  "str_offsets",
 };
 
 // This is the minimum set of sections needed for line numbers.
@@ -544,6 +548,7 @@ static const char* lines_only_debug_sections[] =
   // "addr",      // Fission extension
   // "aranges",   // not used by gdb as of 7.4
   // "frame",
+  // "gdb_scripts",
   "info",
   // "types",
   "line",
@@ -552,8 +557,11 @@ static const char* lines_only_debug_sections[] =
   // "macro",
   // "pubnames",  // not used by gdb as of 7.4
   // "pubtypes",  // not used by gdb as of 7.4
+  // "gnu_pubnames",  // Fission extension
+  // "gnu_pubtypes",  // Fission extension
   // "ranges",
   "str",
+  "str_offsets",  // Fission extension
 };
 
 // These sections are the DWARF fast-lookup tables, and are not needed
This page took 0.040209 seconds and 4 git commands to generate.