2016-06-28 04:17:08 +08:00
|
|
|
# RUN: yaml2obj %s -o %t
|
2018-07-03 01:48:23 +08:00
|
|
|
# RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
|
2015-08-28 07:15:56 +08:00
|
|
|
|
2016-06-28 04:17:08 +08:00
|
|
|
!ELF
|
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:
|
2019-04-03 22:54:22 +08:00
|
|
|
- Name: lulz
|
|
|
|
Binding: STB_GLOBAL
|
2015-08-28 07:15:56 +08:00
|
|
|
|
2016-03-12 16:31:34 +08:00
|
|
|
# CHECK: invalid relocated section index
|