diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-05-05 20:28:39 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-05-05 20:29:01 -0700 |
commit | 4467df35a93e4c8e5ff7549e8d23324c64f527bd (patch) | |
tree | cab3952c02e0352b2bac138cf6e55f5da5ebff1d /ld/testsuite/ld-elf/pr27825-1.d | |
parent | Automatic date update in version.in (diff) | |
download | binutils-gdb-4467df35a93e4c8e5ff7549e8d23324c64f527bd.tar.gz binutils-gdb-4467df35a93e4c8e5ff7549e8d23324c64f527bd.tar.bz2 binutils-gdb-4467df35a93e4c8e5ff7549e8d23324c64f527bd.zip |
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.
Diffstat (limited to 'ld/testsuite/ld-elf/pr27825-1.d')
-rw-r--r-- | ld/testsuite/ld-elf/pr27825-1.d | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr27825-1.d b/ld/testsuite/ld-elf/pr27825-1.d new file mode 100644 index 00000000000..c9b1b921f3d --- /dev/null +++ b/ld/testsuite/ld-elf/pr27825-1.d @@ -0,0 +1,21 @@ +#source: pr27825-1a.s +#source: pr27825-1b.s +#ld: -e _start --emit-relocs -z unique-symbol +#nm: --defined-only +#xfail: [is_generic] +#xfail: fr30-*-* frv-*-* ft32-*-* iq2000-*-* mn10200-*-* msp*-* mt-*-* +# These targets don't support -z. + +#... +[0-9a-f]+ t bar.0 +#... +[0-9a-f]+ t bar.1 +#... +[0-9a-f]+ t bar.1.0 +#... +[0-9a-f]+ t bar.1.1 +#... +[0-9a-f]+ t bar.2.0 +#... +[0-9a-f]+ t bar.2.1 +#pass |