diff options
author | Stephen Hines <srhines@google.com> | 2015-03-23 12:10:34 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2015-03-23 12:10:34 -0700 |
commit | ebe69fe11e48d322045d5949c83283927a0d790b (patch) | |
tree | c92f1907a6b8006628a4b01615f38264d29834ea /test/Object/obj2yaml-sectiongroup.test | |
parent | b7d2e72b02a4cb8034f32f8247a2558d2434e121 (diff) | |
download | external_llvm-ebe69fe11e48d322045d5949c83283927a0d790b.zip external_llvm-ebe69fe11e48d322045d5949c83283927a0d790b.tar.gz external_llvm-ebe69fe11e48d322045d5949c83283927a0d790b.tar.bz2 |
Update aosp/master LLVM for rebase to r230699.
Change-Id: I2b5be30509658cb8266be782de0ab24f9099f9b9
Diffstat (limited to 'test/Object/obj2yaml-sectiongroup.test')
-rw-r--r-- | test/Object/obj2yaml-sectiongroup.test | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/Object/obj2yaml-sectiongroup.test b/test/Object/obj2yaml-sectiongroup.test new file mode 100644 index 0000000..66e8e38 --- /dev/null +++ b/test/Object/obj2yaml-sectiongroup.test @@ -0,0 +1,26 @@ +# 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: } |