diff options
author | Jake Ehrlich <jakehehrlich@google.com> | 2017-10-10 18:47:09 +0000 |
---|---|---|
committer | Jake Ehrlich <jakehehrlich@google.com> | 2017-10-10 18:47:09 +0000 |
commit | 36a2eb34ed394b7277df6ef9b935bfe2be3402b8 (patch) | |
tree | 876ae8d0fd21d2494acbb401953c66431e5e7a64 /llvm/test/tools/llvm-objcopy/dynsym-error-remove-strtab.test | |
parent | c5ff72708d232079e1c2099165584cf8d03e1c7e (diff) | |
download | bcm5719-llvm-36a2eb34ed394b7277df6ef9b935bfe2be3402b8.tar.gz bcm5719-llvm-36a2eb34ed394b7277df6ef9b935bfe2be3402b8.zip |
[llvm-objcopy] Add support for removing sections
This change adds support for removing sections using the -R field (as
GNU objcopy does as well). This change should let us add many helpful
tests and is a proper stepping stone for adding more general kinds of
stripping.
Differential Revision: https://reviews.llvm.org/D38260
llvm-svn: 315346
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/dynsym-error-remove-strtab.test')
-rw-r--r-- | llvm/test/tools/llvm-objcopy/dynsym-error-remove-strtab.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/dynsym-error-remove-strtab.test b/llvm/test/tools/llvm-objcopy/dynsym-error-remove-strtab.test new file mode 100644 index 00000000000..ef6ef243295 --- /dev/null +++ b/llvm/test/tools/llvm-objcopy/dynsym-error-remove-strtab.test @@ -0,0 +1,3 @@ +# RUN: not llvm-objcopy -R .dynstr %p/Inputs/dynsym.so %t 2>&1 >/dev/null | FileCheck %s + +# CHECK: String table .dynstr cannot be removed because it is referenced by the section .dynsym |