2019-04-12 14:10:50 +00:00
|
|
|
# RUN: yaml2obj %s -o %t.o
|
2020-01-16 16:38:04 +00:00
|
|
|
# RUN: ld.lld %t.o -o %t.out
|
2019-04-12 14:10:50 +00:00
|
|
|
|
2020-01-16 16:38:04 +00:00
|
|
|
# Test that we can handle R_386_NONE.
|
2019-04-12 14:10:50 +00:00
|
|
|
|
|
|
|
!ELF
|
|
|
|
FileHeader:
|
2020-01-16 16:38:04 +00:00
|
|
|
Class: ELFCLASS32
|
2019-04-12 14:10:50 +00:00
|
|
|
Data: ELFDATA2LSB
|
|
|
|
Type: ET_REL
|
2020-01-16 16:38:04 +00:00
|
|
|
Machine: EM_386
|
2019-04-12 14:10:50 +00:00
|
|
|
Sections:
|
|
|
|
- Name: .text
|
|
|
|
Type: SHT_PROGBITS
|
|
|
|
Flags: [ SHF_ALLOC ]
|
2020-01-16 16:38:04 +00:00
|
|
|
- Name: .rel.text
|
2019-04-12 14:10:50 +00:00
|
|
|
Type: SHT_RELA
|
|
|
|
Link: .symtab
|
|
|
|
Info: .text
|
|
|
|
Relocations:
|
|
|
|
- Offset: 0x0000000000000000
|
|
|
|
Symbol: ''
|
2020-01-16 16:38:04 +00:00
|
|
|
Type: R_386_NONE
|