diff options
author | Cary Coutant <ccoutant@gmail.com> | 2015-06-11 10:17:04 -0700 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2015-06-11 13:21:10 -0700 |
commit | dd68f8fa8e2412c5c16380871d8ac5e40909aef6 (patch) | |
tree | 7edf3728b35100d172f4e5af0dded1ac7cd87070 /gold/layout.h | |
parent | Fix broken gold/testsuite/script_test_12 in some setup. (diff) | |
download | binutils-gdb-dd68f8fa8e2412c5c16380871d8ac5e40909aef6.tar.gz binutils-gdb-dd68f8fa8e2412c5c16380871d8ac5e40909aef6.tar.bz2 binutils-gdb-dd68f8fa8e2412c5c16380871d8ac5e40909aef6.zip |
Fix bug where SECTIONS clause does not handle compressed debug sections.
When laying out .debug_* sections, we translate the names of compressed
debug sections that start with ".zdebug", but when processing input
section specs in a linker script, we do not handle the translation there.
This results in an internal error as reported in PR 17731.
gold/
PR gold/17731
* layout.cc (corresponding_uncompressed_section_name): New function.
(Layout::choose_output_section): Call it.
* layout.h (corresponding_uncompressed_section_name): New function.
* script-sections.cc (Input_section_info::set_section_name): Check
for compressed debug section (.zdebug style).
Diffstat (limited to 'gold/layout.h')
-rw-r--r-- | gold/layout.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/layout.h b/gold/layout.h index 4e29ba8de4e..7bdaaca28d7 100644 --- a/gold/layout.h +++ b/gold/layout.h @@ -66,6 +66,10 @@ struct Timespec; extern bool is_compressed_debug_section(const char* secname); +// Return the name of the corresponding uncompressed debug section. +extern std::string +corresponding_uncompressed_section_name(std::string secname); + // Maintain a list of free space within a section, segment, or file. // Used for incremental update links. |