Skip to content

Commit 028ad04

Browse files
committed
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).
1 parent a9cc640 commit 028ad04

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

ld/testsuite/ld-elf/linkonce1.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#source: linkonce1b.s
33
#ld: -r
44
#objdump: -r
5-
#xfail: [is_generic]
5+
#notarget: [is_generic]
66

77
.*: file format .*
88
#...

ld/testsuite/ld-elf/linkonce3.d

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#source: linkonce1a.s
2+
#source: linkonce1b.s
3+
#ld: -r
4+
#objdump: -r
5+
#target: [is_generic]
6+
7+
.*: file format .*
8+
#...
9+
RELOCATION RECORDS FOR \[.debug_frame\]:
10+
OFFSET[ ]+TYPE[ ]+VALUE[ ]*
11+
.*(NONE|unused|UNUSED).*\*ABS\*
12+
13+
#pass

0 commit comments

Comments
 (0)