diff options
author | George Rimar <grimar@accesssoftek.com> | 2019-02-28 08:21:50 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2019-02-28 08:21:50 +0000 |
commit | bf447a5bb5553dc979ffa77071b144a9cc83ddcc (patch) | |
tree | cd207d4ad8796f69a6467ae9e775b7cdec6458ee /llvm/test/tools/llvm-objcopy | |
parent | 7b4fce12b35bf89db45cbc13329146c58d156b53 (diff) | |
download | bcm5719-llvm-bf447a5bb5553dc979ffa77071b144a9cc83ddcc.tar.gz bcm5719-llvm-bf447a5bb5553dc979ffa77071b144a9cc83ddcc.zip |
[llvm-objdump] - Improve the error message for "removing a section that is used by relocation" case.
This refines/improves the error message introduced in D58625
Differential revision: https://reviews.llvm.org/D58709
llvm-svn: 355074
Diffstat (limited to 'llvm/test/tools/llvm-objcopy')
-rw-r--r-- | llvm/test/tools/llvm-objcopy/ELF/strip-section-err.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-objcopy/ELF/strip-section-err.test b/llvm/test/tools/llvm-objcopy/ELF/strip-section-err.test index f95185aba62..9bcea100bb9 100644 --- a/llvm/test/tools/llvm-objcopy/ELF/strip-section-err.test +++ b/llvm/test/tools/llvm-objcopy/ELF/strip-section-err.test @@ -3,7 +3,7 @@ # RUN: yaml2obj %s > %t1 # RUN: not llvm-objcopy -R .data %t1 2>&1 | FileCheck %s -# CHECK: error: Section .data cannot be removed because of symbol 'foo' used by the relocation patching offset 0x1 from section .rela.text. +# CHECK: error: Section .data can't be removed: (.text+0x1) has relocation against symbol 'foo' ## Check the behavior when we also remove the relocation section. ## We have no reference in this case and hence no error should be emitted. |