2016-12-03 23:26:18 +08:00
|
|
|
# RUN: yaml2obj %s -o %t.o
|
|
|
|
# RUN: yaml2obj %S/Inputs/shf-info-link.test -o %t2.o
|
|
|
|
# RUN: ld.lld %t.o %t2.o -o %t3.o -r
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj -S %t3.o | FileCheck %s
|
2016-12-03 23:26:18 +08:00
|
|
|
|
|
|
|
# CHECK-NOT: Name: .rela.text
|
|
|
|
# CHECK: Name: .rela.text
|
|
|
|
# CHECK-NOT: Name: .rela.text
|
|
|
|
|
|
|
|
|
|
|
|
--- !ELF
|
|
|
|
FileHeader:
|
|
|
|
Class: ELFCLASS64
|
|
|
|
Data: ELFDATA2LSB
|
|
|
|
Type: ET_REL
|
|
|
|
Machine: EM_X86_64
|
|
|
|
Sections:
|
|
|
|
- Name: .text
|
|
|
|
Type: SHT_PROGBITS
|
|
|
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
|
|
- Name: .rela.text
|
|
|
|
Type: SHT_RELA
|
|
|
|
Flags: [ SHF_INFO_LINK ]
|
|
|
|
Link: .symtab
|
|
|
|
Info: .text
|
|
|
|
Relocations:
|
2020-03-04 21:55:15 +08:00
|
|
|
- Symbol: foo
|
2016-12-03 23:26:18 +08:00
|
|
|
Type: R_X86_64_64
|
|
|
|
Symbols:
|
2019-04-03 22:54:22 +08:00
|
|
|
- Name: foo
|
|
|
|
Binding: STB_GLOBAL
|