diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-09-29 00:13:14 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-09-29 00:13:14 +0000 |
commit | 54e8959c602eddaf8e7c895445610b6f40c92f56 (patch) | |
tree | 93561eb42adb872d28a797f52e2a68dc25db3239 /ld/testsuite/ld-elf/pr13195.c | |
parent | d8250e5afa23fe5c4e22f156a4a7cd8e1b490306 (diff) | |
download | gdb-54e8959c602eddaf8e7c895445610b6f40c92f56.zip gdb-54e8959c602eddaf8e7c895445610b6f40c92f56.tar.gz gdb-54e8959c602eddaf8e7c895445610b6f40c92f56.tar.bz2 |
Fix --gc-sections failure with symbol versioning.
bfd/
2011-09-28 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13195
* elflink.c (_bfd_elf_merge_symbol): Don't set dynamic_def when
clearing def_dynamic.
(elf_link_add_object_symbols): Likewise. Set dynamic_def when
setting def_dynamic.
(bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is
versioned.
ld/testsuite/
2011-09-28 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13195
* ld-elf/elf.exp: Add a C link testcase for PR ld/13195.
* ld-elf/pr13195.c: New.
* ld-elf/pr13195.d: Likewise.
* ld-elf/pr13195.s: Likewise.
* ld-elf/pr13195.t: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf/pr13195.c')
-rw-r--r-- | ld/testsuite/ld-elf/pr13195.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr13195.c b/ld/testsuite/ld-elf/pr13195.c new file mode 100644 index 0000000..a9bce4a --- /dev/null +++ b/ld/testsuite/ld-elf/pr13195.c @@ -0,0 +1,5 @@ +int +main () +{ + return 0; +} |