diff options
| author | Jake Ehrlich <jakehehrlich@google.com> | 2018-07-16 19:48:52 +0000 |
|---|---|---|
| committer | Jake Ehrlich <jakehehrlich@google.com> | 2018-07-16 19:48:52 +0000 |
| commit | c7f8ac7896cf4147adca21220e7c4599bcee5743 (patch) | |
| tree | c2e07977deb0545309510a17339c84cbc938a254 /llvm/test/tools/llvm-objcopy/auto-remove-shndx.test | |
| parent | 88feedd7c7564fd2792a6499ad9c3312695a949a (diff) | |
| download | bcm5719-llvm-c7f8ac7896cf4147adca21220e7c4599bcee5743.tar.gz bcm5719-llvm-c7f8ac7896cf4147adca21220e7c4599bcee5743.zip | |
[llvm-objcopy] Add support for large indexes
This patch is an update of an older patch that never landed
(see here: https://reviews.llvm.org/D42516)
Recently various users have run into this issue and it just 100%
has to be solved at this point. The main difference in this patch
is that I use gunzip instead of unzip which should hopefully allow
tests to pass. Please review this as if it is a new patch however.
I found some issues along the way and made some minor modifications.
The binary used in this patch for testing (a zip file to make it small)
can be found here:
https://drive.google.com/file/d/1UjsnTO9edLttZibbr-2T1bJl92KEQFAO/view?usp=sharing
Differential Revision: https://reviews.llvm.org/D49206
llvm-svn: 337204
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/auto-remove-shndx.test')
| -rw-r--r-- | llvm/test/tools/llvm-objcopy/auto-remove-shndx.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/auto-remove-shndx.test b/llvm/test/tools/llvm-objcopy/auto-remove-shndx.test new file mode 100644 index 00000000000..54525fd208e --- /dev/null +++ b/llvm/test/tools/llvm-objcopy/auto-remove-shndx.test @@ -0,0 +1,5 @@ +# RUN: python %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t +# RUN: llvm-objcopy -R .text -R s0 -R s1 -R s2 -R s3 -R s4 -R s5 -R s6 %t %t2 +# RUN: llvm-readobj -sections %t2 | FileCheck --check-prefix=SECS %s + +# SECS-NOT: Name: .symtab_shndx |

