elf: Always append ".COUNT" to local symbols
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 6 May 2021 03:28:39 +0000 (20:28 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 6 May 2021 03:29:01 +0000 (20:29 -0700)
commit4467df35a93e4c8e5ff7549e8d23324c64f527bd
treecab3952c02e0352b2bac138cf6e55f5da5ebff1d
parent9311cd60e18ccc92c36747265aacc6cb6025f66d
elf: Always append ".COUNT" to local symbols

Always append ".COUNT" to local symbols to avoid potential conflicts
with existing local symbol "XXX.COUNT".

bfd/

PR ld/27825
* elflink.c (elf_link_output_symstrtab): Always append ".COUNT"
to local symbols.

ld/

PR ld/27825
* testsuite/ld-elf/pr27825-1.d: New file.
* testsuite/ld-elf/pr27825-1a.s: Likewise.
* testsuite/ld-elf/pr27825-1b.s: Likewise.
* testsuite/ld-elf/pr27825-2.d: Likewise.
* testsuite/ld-elf/pr27825-2a.s: Likewise.
* testsuite/ld-elf/pr27825-2b.s: Likewise.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-elf/pr26391.nd
ld/testsuite/ld-elf/pr27825-1.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr27825-1a.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr27825-1b.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr27825-2.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr27825-2a.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr27825-2b.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr27825-2c.s [new file with mode: 0644]
This page took 0.036019 seconds and 4 git commands to generate.