Skip to content

Commit 0fbc728

Browse files
committed
[lld][test][LoongArch] Remove the test for R_LARCH_CALL36 range checking
Several buildbots report: ld.lld: error: failed to open /dev/null: Cannot allocate memory For example: - https://lab.llvm.org/buildbot/#/builders/184/builds/8842 - https://lab.llvm.org/buildbot/#/builders/247/builds/12559
1 parent 58689e4 commit 0fbc728

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lld/test/ELF/loongarch-call36.s

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
# GOTPLT-NEXT: 0x01274730 00000000 00000000 00000000 00000000
4141
# GOTPLT-NEXT: 0x01274740 00452301 00000000
4242

43-
# RUN: not ld.lld %t/a.o --section-start=.text=0x20000 --section-start=.sec.foo=0x2000020000 -o /dev/null 2>&1 | \
44-
# RUN: FileCheck -DFILE=%t/a.o --check-prefix=ERROR-RANGE %s
45-
# ERROR-RANGE: error: [[FILE]]:(.text+0x0): relocation R_LARCH_CALL36 out of range: 137438953472 is not in [-137439084544, 137438822399]; references 'foo'
46-
4743
## Impossible case in reality becasue all LoongArch instructions are fixed 4-bytes long.
4844
# RUN: not ld.lld %t/a.o --section-start=.text=0x20000 --section-start=.sec.foo=0x40001 -o /dev/null 2>&1 | \
4945
# RUN: FileCheck -DFILE=%t/a.o --check-prefix=ERROR-ALIGN %s

0 commit comments

Comments
 (0)