diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2019-08-12 14:05:37 +0000 |
---|---|---|
committer | Jordan Rupprecht <rupprecht@google.com> | 2019-08-12 14:05:37 +0000 |
commit | f927b34a148b27b24f37f062d5a0620b76430ade (patch) | |
tree | b1f695448bcdb0d9942efa235d69ed2e2f8f53bd /llvm/test/Object | |
parent | 9a452740ec89f856492841af3f9c616f5be96c7c (diff) | |
download | bcm5719-llvm-f927b34a148b27b24f37f062d5a0620b76430ade.tar.gz bcm5719-llvm-f927b34a148b27b24f37f062d5a0620b76430ade.zip |
[llvm-readobj] Downgrade 'PT_DYNAMIC segment offset + size exceeds the size of the file' from an error to a warning
Summary: This allows llvm-readobj to print other useful information for truncated files instead of giving up.
Reviewers: jhenderson, grimar, MaskRay
Reviewed By: jhenderson, grimar, MaskRay
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66036
llvm-svn: 368576
Diffstat (limited to 'llvm/test/Object')
-rw-r--r-- | llvm/test/Object/invalid.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Object/invalid.test b/llvm/test/Object/invalid.test index 09c8dfecdd9..cddc0b9c342 100644 --- a/llvm/test/Object/invalid.test +++ b/llvm/test/Object/invalid.test @@ -489,9 +489,9 @@ Sections: ## than the object size. Check llvm-readobj reports it. # RUN: yaml2obj %s --docnum=23 -o %t23 -# RUN: not llvm-readobj --dyn-relocations %t23 2>&1 | FileCheck --check-prefix=DYN-TABLE-PHDR %s +# RUN: llvm-readobj --dyn-relocations %t23 2>&1 | FileCheck --check-prefix=DYN-TABLE-PHDR %s -# DYN-TABLE-PHDR: error: PT_DYNAMIC segment offset + size exceeds the size of the file +# DYN-TABLE-PHDR: warning: PT_DYNAMIC segment offset + size exceeds the size of the file --- !ELF FileHeader: @@ -515,7 +515,7 @@ ProgramHeaders: ## than the object size. Check llvm-readobj reports it. # RUN: yaml2obj %s --docnum=24 -o %t24 -# RUN: not llvm-readobj --dyn-relocations %t24 2>&1 \ +# RUN: llvm-readobj --dyn-relocations %t24 2>&1 \ # RUN: | FileCheck --check-prefix=DYN-TABLE-PHDR %s --- !ELF |