aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-readobj/llvm-readobj.h
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-05-20 15:41:48 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-05-20 15:41:48 +0000
commit72f821d3de05448e71bff7b39d3e4993c447882a (patch)
tree1eb6c4cca48be0b0a5210287c229fb1013e66754 /llvm/tools/llvm-readobj/llvm-readobj.h
parent055906e1e50ddc35d6c8cdccab48ed83e93b47eb (diff)
downloadllvm-72f821d3de05448e71bff7b39d3e4993c447882a.zip
llvm-72f821d3de05448e71bff7b39d3e4993c447882a.tar.gz
llvm-72f821d3de05448e71bff7b39d3e4993c447882a.tar.bz2
[llvm-readelf] - Rework how we parse the .dynamic section.
This is a result of what I found during my work on https://bugs.llvm.org/show_bug.cgi?id=41679. Previously LLVM readelf took the information about .dynamic section from its PT_DYNAMIC segment only. GNU tools have a bit different logic. They also use the information from the .dynamic section header if it is available. This patch changes the code to improve the compatibility with the GNU Binutils. Differential revision: https://reviews.llvm.org/D61937 llvm-svn: 361165
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.h')
-rw-r--r--llvm/tools/llvm-readobj/llvm-readobj.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-readobj/llvm-readobj.h b/llvm/tools/llvm-readobj/llvm-readobj.h
index 54318b2..c89871f 100644
--- a/llvm/tools/llvm-readobj/llvm-readobj.h
+++ b/llvm/tools/llvm-readobj/llvm-readobj.h
@@ -22,6 +22,7 @@ namespace llvm {
// Various helper functions.
LLVM_ATTRIBUTE_NORETURN void reportError(Twine Msg);
+ void reportWarning(Twine Msg);
void error(std::error_code EC);
void error(llvm::Error EC);
template <typename T> T error(llvm::Expected<T> &&E) {