2017-07-07 17:18:05 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: yaml2obj %s -o %t.o
|
|
|
|
# RUN: not ld.lld -gdb-index %t.o -o %t.exe 2>&1 | FileCheck %s
|
|
|
|
|
2019-02-15 02:02:20 +08:00
|
|
|
# CHECK: error: {{.*}}invalid-debug-relocations.test.tmp.o:(.debug_info+0x0): unknown relocation (255) against symbol _start
|
2017-07-07 17:18:05 +08:00
|
|
|
|
|
|
|
!ELF
|
|
|
|
FileHeader:
|
|
|
|
Class: ELFCLASS32
|
|
|
|
Data: ELFDATA2LSB
|
|
|
|
Type: ET_REL
|
|
|
|
Machine: EM_386
|
|
|
|
Sections:
|
|
|
|
- Type: SHT_PROGBITS
|
|
|
|
Name: .text
|
|
|
|
Flags: [ ]
|
|
|
|
AddressAlign: 0x04
|
|
|
|
Content: "0000"
|
|
|
|
- Type: SHT_PROGBITS
|
|
|
|
Name: .debug_info
|
|
|
|
Flags: [ ]
|
|
|
|
AddressAlign: 0x04
|
|
|
|
Content: "0000"
|
|
|
|
- Type: SHT_REL
|
|
|
|
Name: .rel.debug_info
|
|
|
|
Link: .symtab
|
|
|
|
Info: .debug_info
|
|
|
|
Relocations:
|
|
|
|
- Offset: 0
|
|
|
|
Symbol: _start
|
|
|
|
Type: 0xFF
|
|
|
|
- Offset: 4
|
|
|
|
Symbol: _start
|
|
|
|
Type: 0xFF
|
|
|
|
Symbols:
|
2019-04-03 22:54:22 +08:00
|
|
|
- Name: _start
|
|
|
|
Type: STT_FUNC
|
|
|
|
Section: .text
|
|
|
|
Value: 0x0
|
|
|
|
Binding: STB_GLOBAL
|