diff options
author | Alan Modra <amodra@gmail.com> | 2020-01-27 10:27:42 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-01-29 11:14:12 +1030 |
commit | 7b647b69680015f240b20e6f38d824d71d4bd30d (patch) | |
tree | 11ab35ce8e43d18a46ab912761dcfc0caee1df0e /ld/testsuite/ld-elf/pr25458.rd | |
parent | 9d4684ce5baf54f6f9cf73f96de836e255eeb7ba (diff) | |
download | binutils-gdb-7b647b69680015f240b20e6f38d824d71d4bd30d.tar.gz |
Mark all weak aliases for copy relocations
bfd/
PR ld/25458
* elflink.c (_bfd_elf_gc_mark_rsec): Mark all weak aliases.
ld/
PR ld/25458
* testsuite/ld-elf/pr25458.map: New file.
* testsuite/ld-elf/pr25458.rd: Likewise.
* testsuite/ld-elf/pr25458a.s: Likewise.
* testsuite/ld-elf/pr25458b.s: Likewise.
* testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
(cherry picked from commit 3024a17ae029ec7f55b498e99ddd6238e22fe565)
Diffstat (limited to 'ld/testsuite/ld-elf/pr25458.rd')
-rw-r--r-- | ld/testsuite/ld-elf/pr25458.rd | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr25458.rd b/ld/testsuite/ld-elf/pr25458.rd new file mode 100644 index 00000000000..d0fc6b9bed7 --- /dev/null +++ b/ld/testsuite/ld-elf/pr25458.rd @@ -0,0 +1,10 @@ +#... +Symbol table '\.dynsym' contains [0-9]+ entries: + +Num: +Value +Size Type +Bind +Vis +Ndx Name +#... + +[0-9]+: [0-9a-f]+ +(4|8)+ OBJECT +(WEAK|GLOBAL) +DEFAULT +[0-9]+ _*environ@FOO \(2\) +#... + +[0-9]+: [0-9a-f]+ +(4|8)+ OBJECT +(WEAK|GLOBAL) +DEFAULT +[0-9]+ _*environ@FOO \(2\) +#... + +[0-9]+: [0-9a-f]+ +(4|8)+ OBJECT +(WEAK|GLOBAL) +DEFAULT +[0-9]+ _*environ@FOO \(2\) +#pass |