From: Alan Modra Date: Sat, 19 Jul 2025 05:57:04 +0000 (+0930) Subject: Re: RELOC_AGAINST_DISCARDED_SECTION zero size reloc sections X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=028ad040bb6e1a004bcdc2dc2919d5e82f1171bf;p=thirdparty%2Fbinutils-gdb.git 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). --- diff --git a/ld/testsuite/ld-elf/linkonce1.d b/ld/testsuite/ld-elf/linkonce1.d index 654171dc7a6..3920f25d54a 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 00000000000..25306d2c3c2 --- /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