mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
5872174fd8
This adds section group support to the tools obj2yaml and yaml2obj. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230124 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
991 B
Plaintext
27 lines
991 B
Plaintext
# Checks that the tool is able to read section groups with ELF.
|
|
RUN: obj2yaml %p/Inputs/sectionGroup.elf.x86-64 > %t1.sectiongroup.yaml
|
|
RUN: FileCheck %s --check-prefix ELF-GROUP < %t1.sectiongroup.yaml
|
|
RUN: yaml2obj -format=elf %t1.sectiongroup.yaml -o %t2.o.elf
|
|
RUN: llvm-readobj -sections %t2.o.elf | FileCheck %s -check-prefix=SECTIONS
|
|
#ELF-GROUP: - Name: .group
|
|
#ELF-GROUP: Type: SHT_GROUP
|
|
#ELF-GROUP: Link: .symtab
|
|
#ELF-GROUP: Info: a
|
|
#ELF-GROUP: Members:
|
|
#ELF-GROUP: - SectionOrType: GRP_COMDAT
|
|
#ELF-GROUP: - SectionOrType: .rodata.a
|
|
#SECTIONS: Format: ELF64-x86-64
|
|
#SECTIONS: Arch: x86_64
|
|
#SECTIONS: AddressSize: 64bit
|
|
#SECTIONS: Section {
|
|
#SECTIONS: Index: 1
|
|
#SECTIONS: Name: .group (21)
|
|
#SECTIONS: Type: SHT_GROUP (0x11)
|
|
#SECTIONS: Flags [ (0x0)
|
|
#SECTIONS: ]
|
|
#SECTIONS: Address: 0x0
|
|
#SECTIONS: Size: 8
|
|
#SECTIONS: AddressAlignment: 4
|
|
#SECTIONS: EntrySize: 4
|
|
#SECTIONS: }
|