2019-05-28 22:01:25 +02:00
|
|
|
# RUN: yaml2obj %s -o %t.o
|
2020-06-15 19:21:47 +02:00
|
|
|
# RUN: llvm-readobj -a --cg-profile --addrsig %t.o | FileCheck %s
|
2019-05-28 22:01:25 +02:00
|
|
|
|
|
|
|
# Test that multiple sections with the same type does not trigger an error.
|
|
|
|
|
|
|
|
# CHECK: ElfHeader {
|
2019-12-03 10:54:36 +01:00
|
|
|
# CHECK: VersionSymbols [
|
2019-10-17 12:23:48 +02:00
|
|
|
# CHECK: VersionDefinitions [
|
|
|
|
# CHECK: VersionRequirements [
|
2019-05-28 22:01:25 +02:00
|
|
|
# CHECK: CGProfile [
|
|
|
|
# CHECK: Addrsig [
|
|
|
|
|
|
|
|
--- !ELF
|
|
|
|
FileHeader:
|
|
|
|
Class: ELFCLASS64
|
|
|
|
Data: ELFDATA2LSB
|
|
|
|
Type: ET_REL
|
|
|
|
Machine: EM_X86_64
|
|
|
|
Sections:
|
|
|
|
- Name: .symtab2
|
|
|
|
Type: SHT_SYMTAB
|
|
|
|
Link: .strtab
|
|
|
|
Content: ''
|
|
|
|
EntSize: 24
|
|
|
|
- Name: .versym
|
|
|
|
Type: SHT_GNU_versym
|
2019-12-03 10:54:36 +01:00
|
|
|
Entries: [ 0 ]
|
|
|
|
Link: .dynsym
|
2019-05-28 22:01:25 +02:00
|
|
|
- Name: .versym2
|
|
|
|
Type: SHT_GNU_versym
|
2019-12-03 10:54:36 +01:00
|
|
|
Entries: [ 0 ]
|
|
|
|
Link: .dynsym
|
2019-05-28 22:01:25 +02:00
|
|
|
- Name: .verdef
|
|
|
|
Type: SHT_GNU_verdef
|
|
|
|
Info: 0x0000000000000000
|
|
|
|
Entries:
|
|
|
|
- Name: .verdef2
|
|
|
|
Type: SHT_GNU_verdef
|
|
|
|
Info: 0x0000000000000000
|
|
|
|
Entries:
|
|
|
|
- Name: .verneed
|
|
|
|
Type: SHT_GNU_verneed
|
|
|
|
Info: 0x0000000000000000
|
|
|
|
Dependencies:
|
|
|
|
- Name: .verneed2
|
|
|
|
Type: SHT_GNU_verneed
|
|
|
|
Info: 0x0000000000000000
|
|
|
|
Dependencies:
|
|
|
|
- Name: .llvm.call-graph-profile
|
|
|
|
Type: SHT_LLVM_CALL_GRAPH_PROFILE
|
|
|
|
Content: ''
|
|
|
|
EntSize: 16
|
|
|
|
- Name: .llvm.call-graph-profile2
|
|
|
|
Type: SHT_LLVM_CALL_GRAPH_PROFILE
|
|
|
|
Content: ''
|
|
|
|
EntSize: 16
|
|
|
|
- Name: .llvm_addrsig
|
|
|
|
Type: SHT_LLVM_ADDRSIG
|
|
|
|
Content: ''
|
|
|
|
- Name: .llvm_addrsig2
|
|
|
|
Type: SHT_LLVM_ADDRSIG
|
|
|
|
Content: ''
|
|
|
|
Symbols:
|
|
|
|
- Name: f
|
2019-12-03 10:54:36 +01:00
|
|
|
DynamicSymbols: []
|
2019-05-28 22:01:25 +02:00
|
|
|
...
|