diff options
author | Cary Coutant <ccoutant@google.com> | 2014-11-26 14:41:46 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2014-11-26 14:41:46 -0800 |
commit | 982bbd97c56073d9524b71526dc5911ec32124ca (patch) | |
tree | 794cd3769f1f65a44b239a3c0eda93be0efe623e /gold/layout.cc | |
parent | bb779192aecf89975aef7a16e1ea67789b5f38dd (diff) | |
download | gdb-982bbd97c56073d9524b71526dc5911ec32124ca.zip gdb-982bbd97c56073d9524b71526dc5911ec32124ca.tar.gz gdb-982bbd97c56073d9524b71526dc5911ec32124ca.tar.bz2 |
Update list of debug sections for --strip-debug-xxx options.
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.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r-- | gold/layout.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index 7cbbe39..4e60f8e 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -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 |