summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2014-07-12 18:25:08 +0000
committerSimon Atanasyan <simon@atanasyan.com>2014-07-12 18:25:08 +0000
commit8ebb6aed9b66bcedcea3dce197416a20cc28579b (patch)
treea237d7ab86dd6c4a6693ea13f3e43abf01b5f1a7 /llvm/test/Object
parenta6a362a0866dc74125d08bf05c5f6d2efe01e230 (diff)
downloadbcm5719-llvm-8ebb6aed9b66bcedcea3dce197416a20cc28579b.tar.gz
bcm5719-llvm-8ebb6aed9b66bcedcea3dce197416a20cc28579b.zip
[ELFYAML] Group ELF section type flags to target specific blocks.
Recognize only flags which correspond to the current target. llvm-svn: 212880
Diffstat (limited to 'llvm/test/Object')
-rw-r--r--llvm/test/Object/Inputs/unwind-section.elf-x86-64bin0 -> 2369 bytes
-rw-r--r--llvm/test/Object/obj2yaml.test8
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/unwind-section.elf-x86-64 b/llvm/test/Object/Inputs/unwind-section.elf-x86-64
new file mode 100644
index 00000000000..3a845086510
--- /dev/null
+++ b/llvm/test/Object/Inputs/unwind-section.elf-x86-64
Binary files differ
diff --git a/llvm/test/Object/obj2yaml.test b/llvm/test/Object/obj2yaml.test
index 98b40d5cdab..c986b91281e 100644
--- a/llvm/test/Object/obj2yaml.test
+++ b/llvm/test/Object/obj2yaml.test
@@ -3,6 +3,8 @@ RUN: obj2yaml %p/Inputs/trivial-object-test.coff-x86-64 | FileCheck %s --check-p
RUN: obj2yaml %p/Inputs/trivial-object-test.elf-mipsel | FileCheck %s --check-prefix ELF-MIPSEL
RUN: obj2yaml %p/Inputs/trivial-object-test.elf-mips64el | FileCheck %s --check-prefix ELF-MIPS64EL
RUN: obj2yaml %p/Inputs/trivial-object-test.elf-x86-64 | FileCheck %s --check-prefix ELF-X86-64
+RUN: obj2yaml %p/Inputs/unwind-section.elf-x86-64 \
+RUN: | FileCheck %s --check-prefix ELF-X86-64-UNWIND
COFF-I386: header:
COFF-I386-NEXT: Machine: IMAGE_FILE_MACHINE_I386
@@ -405,3 +407,9 @@ ELF-X86-64-NEXT: Section: .text
ELF-X86-64-NEXT: Size: 0x0000000000000026
ELF-X86-64-NEXT: - Name: SomeOtherFunction
ELF-X86-64-NEXT: - Name: puts
+
+ELF-X86-64-UNWIND: - Name: .eh_frame
+ELF-X86-64-UNWIND-NEXT: Type: SHT_X86_64_UNWIND
+ELF-X86-64-UNWIND-NEXT: Flags: [ SHF_ALLOC ]
+ELF-X86-64-UNWIND-NEXT: AddressAlign: 0x0000000000000001
+ELF-X86-64-UNWIND-NEXT: Content: ''
OpenPOWER on IntegriCloud