In LLD_IN_TEST=2 mode, when a thread calls Fatal, there will be no output even if the process exits with code 1. Change a few Fatal to recoverable Err.
18 lines
442 B
Plaintext
18 lines
442 B
Plaintext
## If an object contains a symbol with a broken (too large) st_shndx,
|
|
## check we report it.
|
|
|
|
# RUN: yaml2obj %s -o %t1.o
|
|
# RUN: not ld.lld %t1.o -o /dev/null 2>&1 | FileCheck %s
|
|
# RUN: ld.lld %t1.o -o /dev/null --noinhibit-exec 2>&1 | FileCheck %s
|
|
# CHECK: {{.*}}1.o: invalid section index: 256
|
|
|
|
!ELF
|
|
FileHeader:
|
|
Class: ELFCLASS32
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_386
|
|
Symbols:
|
|
- Name: foo
|
|
Index: 0x100
|