zig/deps/lld/test/ELF/invalid/symbol-index.s
Andrew Kelley 4794281d64 embed LLD 5.0.0
This is 48aaa9f66120f72b5d7e4a90b32fee40a3386ce9 from the
git monorepo.
2017-08-27 17:46:59 -04:00

11 lines
611 B
ArmAsm

## symbol-index.elf has incorrect type of .symtab section.
## There is no symbol bodies because of that and any symbol index becomes incorrect.
## Section Headers:
## [Nr] Name Type Address Off Size ES Flg Lk Inf Al
## [ 0] NULL 0000000000000000 000000 000000 00 0 0 0
## ...
## [ 4] .symtab RELA 0000000000000000 000048 000030 18 1 2 8
# RUN: not ld.lld %p/Inputs/symbol-index.elf -o %t2 2>&1 | \
# RUN: FileCheck --check-prefix=INVALID-SYMBOL-INDEX %s
# INVALID-SYMBOL-INDEX: invalid symbol index