diff options
author | George Rimar <grimar@accesssoftek.com> | 2018-07-18 08:19:58 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2018-07-18 08:19:58 +0000 |
commit | 6fdac3b23ad9229c953a0cede9c01af6c5605792 (patch) | |
tree | 41b1c8d67ca734736de9796e46849d5eba2157c4 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | ad50ae82ad4dafefdaf0779258bf164d5687e984 (diff) | |
download | bcm5719-llvm-6fdac3b23ad9229c953a0cede9c01af6c5605792.tar.gz bcm5719-llvm-6fdac3b23ad9229c953a0cede9c01af6c5605792.zip |
[llvm-readobj] - Teach tool to dump objects with >= SHN_LORESERVE of sections.
http://www.sco.com/developers/gabi/2003-12-17/ch4.eheader.html
says that e_shnum and/or e_shstrndx may have special values if
"the number of sections is greater than or equal to SHN_LORESERVE" or
"the section name string table section index is greater than or equal to SHN_LORESERVE (0xff00)"
Previously llvm-readobj was unable to dump such files, patch changes that.
I had to add a precompiled test case because it does not seem possible to
prepare a test using yaml2obj or llvm-mc (not clear how to make .shstrtab
to have index >= SHN_LORESERVE).
Differential revision: https://reviews.llvm.org/D49369
llvm-svn: 337360
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions