From 72f821d3de05448e71bff7b39d3e4993c447882a Mon Sep 17 00:00:00 2001 From: George Rimar Date: Mon, 20 May 2019 15:41:48 +0000 Subject: [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 --- llvm/tools/llvm-readobj/llvm-readobj.h | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/tools/llvm-readobj/llvm-readobj.h') 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 T error(llvm::Expected &&E) { -- cgit v1.1