diff options
author | Alan Modra <amodra@gmail.com> | 2025-07-19 15:27:04 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-07-19 15:50:44 +0930 |
commit | 028ad040bb6e1a004bcdc2dc2919d5e82f1171bf (patch) | |
tree | 577678cda158559d69c3664e91d60f651ae902d3 | |
parent | a9cc6407c9ce4b8959283f7886984b22de8750f0 (diff) | |
download | binutils-028ad040bb6e1a004bcdc2dc2919d5e82f1171bf.zip binutils-028ad040bb6e1a004bcdc2dc2919d5e82f1171bf.tar.gz binutils-028ad040bb6e1a004bcdc2dc2919d5e82f1171bf.tar.bz2 |
Re: RELOC_AGAINST_DISCARDED_SECTION zero size reloc sections
Update the testsuite, so that is_generic ELF targets still do the
linkonce1 test (as linkonce3).
-rw-r--r-- | ld/testsuite/ld-elf/linkonce1.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/linkonce3.d | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elf/linkonce1.d b/ld/testsuite/ld-elf/linkonce1.d index 654171d..3920f25 100644 --- a/ld/testsuite/ld-elf/linkonce1.d +++ b/ld/testsuite/ld-elf/linkonce1.d @@ -2,7 +2,7 @@ #source: linkonce1b.s #ld: -r #objdump: -r -#xfail: [is_generic] +#notarget: [is_generic] .*: file format .* #... diff --git a/ld/testsuite/ld-elf/linkonce3.d b/ld/testsuite/ld-elf/linkonce3.d new file mode 100644 index 0000000..25306d2 --- /dev/null +++ b/ld/testsuite/ld-elf/linkonce3.d @@ -0,0 +1,13 @@ +#source: linkonce1a.s +#source: linkonce1b.s +#ld: -r +#objdump: -r +#target: [is_generic] + +.*: file format .* +#... +RELOCATION RECORDS FOR \[.debug_frame\]: +OFFSET[ ]+TYPE[ ]+VALUE[ ]* +.*(NONE|unused|UNUSED).*\*ABS\* + +#pass |