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.
This commit is contained in:
parent
bb779192ae
commit
982bbd97c5
|
@ -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>
|
2014-11-26 Jing Yu <jingyu@google.com>
|
||||||
|
|
||||||
* aarch64.cc (Relocate::tls_desc_gd_to_ie): Set ldr target
|
* aarch64.cc (Relocate::tls_desc_gd_to_ie): Set ldr target
|
||||||
|
|
|
@ -524,6 +524,7 @@ static const char* gdb_sections[] =
|
||||||
"addr", // Fission extension
|
"addr", // Fission extension
|
||||||
// "aranges", // not used by gdb as of 7.4
|
// "aranges", // not used by gdb as of 7.4
|
||||||
"frame",
|
"frame",
|
||||||
|
"gdb_scripts",
|
||||||
"info",
|
"info",
|
||||||
"types",
|
"types",
|
||||||
"line",
|
"line",
|
||||||
|
@ -532,8 +533,11 @@ static const char* gdb_sections[] =
|
||||||
"macro",
|
"macro",
|
||||||
// "pubnames", // not used by gdb as of 7.4
|
// "pubnames", // not used by gdb as of 7.4
|
||||||
// "pubtypes", // 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",
|
"ranges",
|
||||||
"str",
|
"str",
|
||||||
|
"str_offsets",
|
||||||
};
|
};
|
||||||
|
|
||||||
// This is the minimum set of sections needed for line numbers.
|
// 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
|
// "addr", // Fission extension
|
||||||
// "aranges", // not used by gdb as of 7.4
|
// "aranges", // not used by gdb as of 7.4
|
||||||
// "frame",
|
// "frame",
|
||||||
|
// "gdb_scripts",
|
||||||
"info",
|
"info",
|
||||||
// "types",
|
// "types",
|
||||||
"line",
|
"line",
|
||||||
|
@ -552,8 +557,11 @@ static const char* lines_only_debug_sections[] =
|
||||||
// "macro",
|
// "macro",
|
||||||
// "pubnames", // not used by gdb as of 7.4
|
// "pubnames", // not used by gdb as of 7.4
|
||||||
// "pubtypes", // 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",
|
// "ranges",
|
||||||
"str",
|
"str",
|
||||||
|
"str_offsets", // Fission extension
|
||||||
};
|
};
|
||||||
|
|
||||||
// These sections are the DWARF fast-lookup tables, and are not needed
|
// These sections are the DWARF fast-lookup tables, and are not needed
|
||||||
|
|
Loading…
Reference in New Issue