diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-06-10 05:31:19 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-06-10 05:31:31 -0700 |
commit | e1b5d517d1c293a64df311d2749bbbbfbe035a4c (patch) | |
tree | 8f608a55c2b8004b5a706d8dbee71d2eb7c80885 /gdb/dwarf2 | |
parent | 25065fcd192d9958c03e107985aea41d651e4a16 (diff) | |
download | gdb-e1b5d517d1c293a64df311d2749bbbbfbe035a4c.zip gdb-e1b5d517d1c293a64df311d2749bbbbfbe035a4c.tar.gz gdb-e1b5d517d1c293a64df311d2749bbbbfbe035a4c.tar.bz2 |
ELF: Properly handle section symbols
When defining the section symbol, __start_FOO, for the section FOO:
1. Treat the common symbol, __start_FOO, in input object file as
definition.
2. Clear verinfo.verdef.
bfd/
PR ld/26094
* elflink.c (bfd_elf_define_start_stop): Handle common symbols.
Clear verinfo.verdef.
ld/
PR ld/26094
* testsuite/ld-elf/pr26094-1.ver: New fike.
* testsuite/ld-elf/pr26094-1a.c: Likewise.
* testsuite/ld-elf/pr26094-1a.rd: Likewise.
* testsuite/ld-elf/pr26094-1b.c: Likewise.
* testsuite/ld-elf/pr26094-1b.rd: Likewise.
* testsuite/ld-elf/pr26094-1c.c: Likewise.
* testsuite/ld-elf/shared.exp: Run ld/26094 tests.
Diffstat (limited to 'gdb/dwarf2')
0 files changed, 0 insertions, 0 deletions