summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/ELF/many-sections.test
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-01-23 11:54:51 +0000
committerMartin Storsjo <martin@martin.st>2019-01-23 11:54:51 +0000
commit1be91958b34cf0d8a4301dfed1a0ab5bd43997fa (patch)
tree176828c008a60786d5af6f2e11f9173b1f029976 /llvm/test/tools/llvm-objcopy/ELF/many-sections.test
parent481334056f12e3979fb7783ec5a20d7da1a22a4a (diff)
downloadbcm5719-llvm-1be91958b34cf0d8a4301dfed1a0ab5bd43997fa.tar.gz
bcm5719-llvm-1be91958b34cf0d8a4301dfed1a0ab5bd43997fa.zip
[llvm-objcopy] [COFF] Fix handling of aux symbols for big objects
The aux symbols were stored in an opaque std::vector<uint8_t>, with contents interpreted according to the rest of the symbol. All aux symbol types but one fit in 18 bytes (sizeof(coff_symbol16)), and if written to a bigobj, two extra padding bytes are written (as sizeof(coff_symbol32) is 20). In the storage agnostic intermediate representation, store the aux symbols as a series of coff_symbol16 sized opaque blobs. (In practice, all such aux symbols only consist of one aux symbol, so this is more flexible than what reality needs.) The special case is the file aux symbols, which are written in potentially more than one aux symbol slot, without any padding, as one single long string. This can't be stored in the same opaque vector of fixed sized aux symbol entries. The file aux symbols will occupy a different number of aux symbol slots depending on the type of output object file. As nothing in the intermediate process needs to have accurate raw symbol indices, updating that is moved into the writer class. Differential Revision: https://reviews.llvm.org/D57009 llvm-svn: 351947
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/ELF/many-sections.test')
-rw-r--r--llvm/test/tools/llvm-objcopy/ELF/many-sections.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-objcopy/ELF/many-sections.test b/llvm/test/tools/llvm-objcopy/ELF/many-sections.test
index 57239f32e4a..1dd41cfb10c 100644
--- a/llvm/test/tools/llvm-objcopy/ELF/many-sections.test
+++ b/llvm/test/tools/llvm-objcopy/ELF/many-sections.test
@@ -1,4 +1,4 @@
-RUN: %python %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t
+RUN: %python %p/../Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t
RUN: llvm-objcopy %t %t2
RUN: llvm-readobj --file-headers %t2 | FileCheck --check-prefix=EHDR %s
RUN: llvm-readobj --sections %t2 | FileCheck --check-prefix=SECS %s
OpenPOWER on IntegriCloud