diff options
| author | Michael J. Spencer <bigcheesegs@gmail.com> | 2015-07-21 21:40:33 +0000 |
|---|---|---|
| committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2015-07-21 21:40:33 +0000 |
| commit | 402a4f10886cf3ceee58f5614df9606f719d6793 (patch) | |
| tree | 90c464070ccf5ac8ca653db4dd1443be13b04004 /llvm/test/Object | |
| parent | 2be8054b49c42a6bd7d1e94f2b9ca24d92ae7311 (diff) | |
| download | bcm5719-llvm-402a4f10886cf3ceee58f5614df9606f719d6793.tar.gz bcm5719-llvm-402a4f10886cf3ceee58f5614df9606f719d6793.zip | |
[Object][ELF] Handle files with no section header string table.
llvm-svn: 242839
Diffstat (limited to 'llvm/test/Object')
| -rw-r--r-- | llvm/test/Object/Inputs/no-section-header-string-table.elf-x86-64 | bin | 0 -> 1024 bytes | |||
| -rw-r--r-- | llvm/test/Object/no-section-header-string-table.test | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/no-section-header-string-table.elf-x86-64 b/llvm/test/Object/Inputs/no-section-header-string-table.elf-x86-64 Binary files differnew file mode 100644 index 00000000000..9024ad9b757 --- /dev/null +++ b/llvm/test/Object/Inputs/no-section-header-string-table.elf-x86-64 diff --git a/llvm/test/Object/no-section-header-string-table.test b/llvm/test/Object/no-section-header-string-table.test new file mode 100644 index 00000000000..1f449328cab --- /dev/null +++ b/llvm/test/Object/no-section-header-string-table.test @@ -0,0 +1,10 @@ +RUN: llvm-readobj %p/Inputs/no-section-header-string-table.elf-x86-64 --sections \ +RUN: | FileCheck %s + +CHECK: Type: SHT_PROGBITS (0x1) +CHECK: Type: SHT_PROGBITS (0x1) +CHECK: Type: SHT_PROGBITS (0x1) +CHECK: Type: SHT_RELA (0x4) +CHECK: Type: SHT_SYMTAB (0x2) +CHECK: Type: SHT_STRTAB (0x3) +CHECK: Type: SHT_STRTAB (0x3) |

