diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-07-03 14:44:35 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-07-03 14:44:35 +0000 |
commit | 90c984fc53ae23dcda0cba309ad4b51a9dd5d9ee (patch) | |
tree | a2dac07d507762cbaaa7f2a34d932618a2f8160d /ld/testsuite/ld-elf/indirect1c.c | |
parent | 3146fac42836137f284d541266ece045d56b5895 (diff) | |
download | gdb-90c984fc53ae23dcda0cba309ad4b51a9dd5d9ee.zip gdb-90c984fc53ae23dcda0cba309ad4b51a9dd5d9ee.tar.gz gdb-90c984fc53ae23dcda0cba309ad4b51a9dd5d9ee.tar.bz2 |
Properly handle indirect symbols
2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3351
* elflink.c (_bfd_elf_update_dynamic_flags): New.
(_bfd_elf_merge_symbol): Update both real and indirect symbol
dynamic flags.
(_bfd_elf_add_default_symbol): Make the real symbol dynamic if
the indirect symbol is defined in a shared library.
(elf_link_add_object_symbols): Likewise. If the indirect
symbol has been forced local, don't make the real symbol
dynamic.
(elf_link_check_versioned_symbol): Check indirect symbol.
(elf_link_output_extsym): Use real symbol definition when
reporting indirect symbol error. Check version info for
dynamic versioned symbol.
2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3351
* ld-elf/indirect.exp: New file.
* ld-elf/indirect1a.c: Likewise.
* ld-elf/indirect1b.c: Likewise.
* ld-elf/indirect1c.c: Likewise.
* ld-elf/indirect2.c: Likewise.
* ld-elf/indirect3.out: Likewise.
* ld-elf/indirect3a.c: Likewise.
* ld-elf/indirect3b.c: Likewise.
* ld-elf/indirect3c.c: Likewise.
* ld-elf/indirect4.out: Likewise.
* ld-elf/indirect4a.c: Likewise.
* ld-elf/indirect4b.c: Likewise.
* ld-elf/indirect4c.c: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf/indirect1c.c')
-rw-r--r-- | ld/testsuite/ld-elf/indirect1c.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/indirect1c.c b/ld/testsuite/ld-elf/indirect1c.c new file mode 100644 index 0000000..eae278d --- /dev/null +++ b/ld/testsuite/ld-elf/indirect1c.c @@ -0,0 +1,7 @@ +extern void foo (void); + +void +bar (void) +{ + foo (); +} |