From dd68f8fa8e2412c5c16380871d8ac5e40909aef6 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Thu, 11 Jun 2015 10:17:04 -0700 Subject: 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). --- gold/ChangeLog | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gold/ChangeLog') diff --git a/gold/ChangeLog b/gold/ChangeLog index 60d16d5..4d6cd3d 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,12 @@ +2015-06-11 Cary Coutant + + 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). + 2015-06-11 Jing Yu * testsuite/Makefile.am: Add -O0 for script_test_12 test. -- cgit v1.1