aboutsummaryrefslogtreecommitdiff
path: root/gold/ChangeLog
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2016-12-21 17:32:39 -0800
committerCary Coutant <ccoutant@gmail.com>2016-12-22 16:00:06 -0800
commit40d7d93ff412f4c34cde3daa04890d5cd2e0d9c9 (patch)
tree0f063eb01c597b5b10b609e1caee825945c01acc /gold/ChangeLog
parentce0db13751aed2782c417bc4cf715313f9273e94 (diff)
downloadgdb-40d7d93ff412f4c34cde3daa04890d5cd2e0d9c9.zip
gdb-40d7d93ff412f4c34cde3daa04890d5cd2e0d9c9.tar.gz
gdb-40d7d93ff412f4c34cde3daa04890d5cd2e0d9c9.tar.bz2
Fix problem where version script causes predefined hidden symbol to be defined twice.
When creating a predefined hidden symbol like _GLOBAL_OFFSET_TABLE_, gold was incorrectly letting a version script add a version to the symbol, resulting in two copies of the symbol, both STB_LOCAL, but one of which was grouped in the globals part of the symbol table. gold/ * symtab.cc (Symbol_table::define_special_symbol): Add is_forced_local parameter; if set, do not check version script. (Symbol_table::do_define_in_output_data): Pass is_forced_local for STB_LOCAL predefined symbols. (Symbol_table::do_define_in_output_segment): Likewise. (Symbol_table::do_define_in_output_segment): Likewise. (Symbol_table::do_define_as_constant): Likewise. * symtab.h (Symbol_table::define_special_symbol): Add is_forced_local parameter. Adjust all callers. * testsuite/Makefile.am (ver_test_8.sh): New test case. * testsuite/Makefile.in: Regenerate. * ver_test_8.sh: New test script.
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r--gold/ChangeLog15
1 files changed, 15 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index ba74545..9ea609e 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,5 +1,20 @@
2016-12-21 Cary Coutant <ccoutant@gmail.com>
+ * symtab.cc (Symbol_table::define_special_symbol): Add is_forced_local
+ parameter; if set, do not check version script.
+ (Symbol_table::do_define_in_output_data): Pass is_forced_local for
+ STB_LOCAL predefined symbols.
+ (Symbol_table::do_define_in_output_segment): Likewise.
+ (Symbol_table::do_define_in_output_segment): Likewise.
+ (Symbol_table::do_define_as_constant): Likewise.
+ * symtab.h (Symbol_table::define_special_symbol): Add is_forced_local
+ parameter. Adjust all callers.
+ * testsuite/Makefile.am (ver_test_8.sh): New test case.
+ * testsuite/Makefile.in: Regenerate.
+ * ver_test_8.sh: New test script.
+
+2016-12-21 Cary Coutant <ccoutant@gmail.com>
+
* output.cc (Output_segment::first_section): Return NULL if there are
no sections in the segment.
* output.h (Output_segment::first_section_load_address): Assert that