]> granicus.if.org Git - llvm/commit
[llvm-readelf/llvm-objdump] - Improve/refactor the implementation of SHT_LLVM_ADDRSIG...
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 7 Oct 2019 10:29:38 +0000 (10:29 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 7 Oct 2019 10:29:38 +0000 (10:29 +0000)
commitdd1eb78ee204cf13b35c39419f839d1febb131cf
treee0bcbaaea27d87ab7987711a5403e39d554abcca
parent660a9ac8d664924bfc42a02b41b894057dd56316
[llvm-readelf/llvm-objdump] - Improve/refactor the implementation of SHT_LLVM_ADDRSIG section dumping.

This patch:

* Adds a llvm-readobj/llvm-readelf test file for SHT_LLVM_ADDRSIG sections. (we do not have any)
* Enables dumping of SHT_LLVM_ADDRSIG with --all.
* Changes the logic to report a warning instead of an error when something goes wrong during dumping
  (allows to continue dumping SHT_LLVM_ADDRSIG and other sections on error).
* Refactors a piece of logic to a new toULEB128Array helper which might be used for GNU-style
  dumping implementation.

Differential revision: https://reviews.llvm.org/D68383

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373890 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-readobj/all.test
test/tools/llvm-readobj/elf-addrsig.test [new file with mode: 0644]
tools/llvm-readobj/ELFDumper.cpp
tools/llvm-readobj/llvm-readobj.cpp