diff options
author | George Rimar <grimar@accesssoftek.com> | 2018-07-19 14:52:57 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2018-07-19 14:52:57 +0000 |
commit | efd8832ecbaf9e201e2ca11057f24b9fe6969714 (patch) | |
tree | 62da5346e12319135f5ec22f627cb72ec7b5bafe /test | |
parent | 2a478d43e1f4f6ee0a8a60ded4bb65d655ad418d (diff) |
[llvm-readobj] - Do not report invalid amount of sections.
When output style is GNU and amount of sections is >= SHN_LORESERVE,
llvm-readobj reports zero number of sections instead of actual value.
The patch fixes that.
Differential revision: https://reviews.llvm.org/D49544
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/tools/llvm-readobj/many-sections.s | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/tools/llvm-readobj/many-sections.s b/test/tools/llvm-readobj/many-sections.s index 383df266139..053dbbf9fb7 100644 --- a/test/tools/llvm-readobj/many-sections.s +++ b/test/tools/llvm-readobj/many-sections.s @@ -11,10 +11,11 @@ ## space, but its e_shnum, e_shstrndx, sh_size and sh_link fields are set ## according to the above description, so that we can test the dumper. -# RUN: llvm-readobj -file-headers -elf-output-style GNU \ +# RUN: llvm-readobj -file-headers -sections -elf-output-style GNU \ # RUN: %p/Inputs/many-sections.elf-x86_64 | FileCheck %s --check-prefix=GNU1 # GNU1: Number of section headers: 0 (5) # GNU1: Section header string table index: 65535 (3) +# GNU1: There are 5 section headers, starting at offset 0xb8 # RUN: llvm-readobj -file-headers -elf-output-style LLVM \ # RUN: %p/Inputs/many-sections.elf-x86_64 | FileCheck %s --check-prefix=LLVM1 |