diff options
| author | George Rimar <grimar@accesssoftek.com> | 2019-08-29 10:55:57 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2019-08-29 10:55:57 +0000 |
| commit | 72e9584698e83445c0e1ab84431675290f3d3595 (patch) | |
| tree | 26d403df3791623ad9fb58070b880442810b6719 /llvm/test/Object | |
| parent | 942c2e3795d202a91efb3b7ade65755a73499d71 (diff) | |
| download | bcm5719-llvm-72e9584698e83445c0e1ab84431675290f3d3595.tar.gz bcm5719-llvm-72e9584698e83445c0e1ab84431675290f3d3595.zip | |
[llvm-readobj/llvm-readelf] - Report a proper warning when dumping a broken dynamic relocation.
When we have a dynamic relocation with a broken symbol's st_name,
tools report a useless error: "Invalid data was encountered while parsing the file".
After this change we report a warning + "<corrupt>" as a symbol name.
Differential revision: https://reviews.llvm.org/D66734
llvm-svn: 370330
Diffstat (limited to 'llvm/test/Object')
| -rw-r--r-- | llvm/test/Object/invalid.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Object/invalid.test b/llvm/test/Object/invalid.test index c5cb271a1fb..8a75ecd3b77 100644 --- a/llvm/test/Object/invalid.test +++ b/llvm/test/Object/invalid.test @@ -390,7 +390,7 @@ Sections: # RUN: yaml2obj %s --docnum=19 -o %t19 # RUN: not llvm-readobj --symbols %t19 2>&1 | FileCheck -DFILE=%t19 --check-prefix=INVALID-SYM-NAME %s -# INVALID-SYM-NAME: error: '[[FILE]]': Invalid data was encountered while parsing the file +# INVALID-SYM-NAME: error: '[[FILE]]': st_name (0x1) is past the end of the string table of size 0x1 --- !ELF FileHeader: |

