diff options
author | Alan Modra <amodra@gmail.com> | 2020-01-27 10:27:42 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-01-27 10:53:00 +1030 |
commit | 3024a17ae029ec7f55b498e99ddd6238e22fe565 (patch) | |
tree | 554320c69f99bb0a36f8301e9bcfe539873f6f20 /ld/testsuite/ld-elf/pr25458b.s | |
parent | 27ee3a66bfba776a2af8e9e1248e6a65c31e25a3 (diff) | |
download | gdb-3024a17ae029ec7f55b498e99ddd6238e22fe565.zip gdb-3024a17ae029ec7f55b498e99ddd6238e22fe565.tar.gz gdb-3024a17ae029ec7f55b498e99ddd6238e22fe565.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-elf/pr25458b.s')
-rw-r--r-- | ld/testsuite/ld-elf/pr25458b.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr25458b.s b/ld/testsuite/ld-elf/pr25458b.s new file mode 100644 index 0000000..ff64cc7 --- /dev/null +++ b/ld/testsuite/ld-elf/pr25458b.s @@ -0,0 +1,11 @@ + .data + .globl __environ + .type __environ,%object +__environ: + .dc.a 0 + .size __environ, .-__environ + .weak _environ + .globl _environ + .set _environ, __environ + .weak environ + .set environ, __environ |