diff options
author | Nick Clifton <nickc@redhat.com> | 2016-03-22 12:25:08 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-03-22 12:25:08 +0000 |
commit | 4153b6dbb0f38a16fd5b583761aa811212fbb9a5 (patch) | |
tree | d658cb18fecbd0a8691b62fed5924d583108b3a9 /ld/ChangeLog | |
parent | a97fbc7e3ca781b8d95ed8591c6ee65f2d8a798a (diff) | |
download | gdb-4153b6dbb0f38a16fd5b583761aa811212fbb9a5.zip gdb-4153b6dbb0f38a16fd5b583761aa811212fbb9a5.tar.gz gdb-4153b6dbb0f38a16fd5b583761aa811212fbb9a5.tar.bz2 |
Improve COFF/PE linker garbage collection by preventing the removal of sections containing exported symbols.
PR ld/19803
* ldlang.c (lang_add_gc_name): New function. Adds the provided
symbol name to the list of gc symbols.
(lang_process): Call lang_add_gc_name with entry_symbol_default if
entry_symbol.name is NULL. Use lang_add_gc_name to add the init
and fini function names.
* pe-dll.c (process_def_file_and_drectve): Add exported names to
the gc symbol list.
* testsuite/ld-pe/pr19803.s: Do not export _testval symbol.
* testsuite/ld-pe/pr19803.d: Tweak expected output.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r-- | ld/ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 92a71b7..0e16f80 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,18 @@ 2016-03-22 Nick Clifton <nickc@redhat.com> + PR ld/19803 + * ldlang.c (lang_add_gc_name): New function. Adds the provided + symbol name to the list of gc symbols. + (lang_process): Call lang_add_gc_name with entry_symbol_default if + entry_symbol.name is NULL. Use lang_add_gc_name to add the init + and fini function names. + * pe-dll.c (process_def_file_and_drectve): Add exported names to + the gc symbol list. + * testsuite/ld-pe/pr19803.s: Do not export _testval symbol. + * testsuite/ld-pe/pr19803.d: Tweak expected output. + +2016-03-22 Nick Clifton <nickc@redhat.com> + * configure: Regenerate. 2016-03-21 Nick Clifton <nickc@redhat.com> |