diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-01-06 03:56:49 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-01-06 03:56:49 +0000 |
commit | b2c064c6954c9bfa49b7a7e3223df5e7849464c0 (patch) | |
tree | 672a92775914f0bfb1d3721700433185cc2dbc5d /test/Object | |
parent | 3e5d8ade393d347a1483bf39d48ffebe9541b2b0 (diff) | |
download | external_llvm-b2c064c6954c9bfa49b7a7e3223df5e7849464c0.zip external_llvm-b2c064c6954c9bfa49b7a7e3223df5e7849464c0.tar.gz external_llvm-b2c064c6954c9bfa49b7a7e3223df5e7849464c0.tar.bz2 |
[objdump] Add --private-headers, -p.
This currently prints the ELF program headers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object')
-rw-r--r-- | test/Object/Inputs/program-headers.elf-i386 | bin | 0 -> 987 bytes | |||
-rw-r--r-- | test/Object/objdump-private-headers.test | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/Object/Inputs/program-headers.elf-i386 b/test/Object/Inputs/program-headers.elf-i386 Binary files differnew file mode 100644 index 0000000..eb92c71 --- /dev/null +++ b/test/Object/Inputs/program-headers.elf-i386 diff --git a/test/Object/objdump-private-headers.test b/test/Object/objdump-private-headers.test new file mode 100644 index 0000000..e54d3eb --- /dev/null +++ b/test/Object/objdump-private-headers.test @@ -0,0 +1,8 @@ +RUN: llvm-objdump -p %p/Inputs/program-headers.elf-i386 \ +RUN: | FileCheck %s -check-prefix ELF-i386 + +ELF-i386: Program Header: +ELF-i386: LOAD off 0x00000000 vaddr 0x08048000 paddr 0x08048000 align 2**12 +ELF-i386: filesz 0x00000134 memsz 0x00000134 flags r-x +ELF-i386: STACK off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2 +ELF-i386: filesz 0x00000000 memsz 0x00000000 flags rw- |