2015-08-28 07:15:56 +08:00
|
|
|
# RUN: yaml2obj -format elf %s -o %t
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: not ld.lld %t -o %tout 2>&1 | FileCheck %s
|
2015-08-28 07:15:56 +08:00
|
|
|
|
|
|
|
FileHeader:
|
|
|
|
Class: ELFCLASS64
|
|
|
|
Data: ELFDATA2LSB
|
|
|
|
Type: ET_REL
|
|
|
|
Machine: EM_X86_64
|
|
|
|
Sections:
|
2015-08-28 10:53:05 +08:00
|
|
|
- Type: SHT_PROGBITS
|
2015-08-28 07:15:56 +08:00
|
|
|
- Name: .rela.text
|
|
|
|
Type: SHT_RELA
|
|
|
|
Info: 12 # Invalid index
|
|
|
|
Relocations:
|
|
|
|
- Offset: 0x0000000000000001
|
|
|
|
Symbol: lulz
|
|
|
|
Type: R_X86_64_PC32
|
|
|
|
Symbols:
|
|
|
|
Global:
|
|
|
|
- Name: lulz
|
|
|
|
|
2016-03-12 16:31:34 +08:00
|
|
|
# CHECK: invalid relocated section index
|