summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/relocatable-compressed-input.s
Commit message (Collapse)AuthorAgeFilesLines
* [test] Change llvm-readobj -long-option to --long-option or well-known short ↵Fangrui Song2019-05-011-2/+2
| | | | | | | | | | | | options. NFC Also change some options that have different semantics (cause confusion) in llvm-readelf mode: -s => -S -t => --symbols -sd => --section-data llvm-svn: 359651
* Avoid unnecessary buffer allocation and memcpy for compressed sections.Rui Ueyama2018-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we uncompress all compressed sections before doing anything. That works, and that is conceptually simple, but that could results in a waste of CPU time and memory if uncompressed sections are then discarded or just copied to the output buffer. In particular, if .debug_gnu_pub{names,types} are compressed and if no -gdb-index option is given, we wasted CPU and memory because we uncompress them into newly allocated bufers and then memcpy the buffers to the output buffer. That temporary buffer was redundant. This patch changes how to uncompress sections. Now, compressed sections are uncompressed lazily. To do that, `Data` member of `InputSectionBase` is now hidden from outside, and `data()` accessor automatically expands an compressed buffer if necessary. If no one calls `data()`, then `writeTo()` directly uncompresses compressed data into the output buffer. That eliminates the redundant memory allocation and redundant memcpy. This patch significantly reduces memory consumption (20 GiB max RSS to 15 Gib) for an executable whose .debug_gnu_pub{names,types} are in total 5 GiB in an uncompressed form. Differential Revision: https://reviews.llvm.org/D52917 llvm-svn: 343979
* [ELF] - Fix BB after r318516George Rimar2017-11-171-5/+5
| | | | | | | | | Test did not run under windows because uses zlib. Content of section changed because now strings merging is applied. llvm-svn: 318518
* Fix errors in r308335 and add "REQUIRES: x86" to one more file.Rui Ueyama2017-07-181-2/+1
| | | | llvm-svn: 308339
* [LLD] Mark a number of x86 only tests to require x86Jon Chesterfield2017-07-181-0/+1
| | | | | | | | | | | Noticed while testing for an out of tree target. There are probably more tests that should be so marked. I'm not sure who owns these tests so I've added a few names I recognise from the recent history. With advice from probinson, ruiu, rafael and dramatically improved by davidb. Thank you all! Differential Revision: https://reviews.llvm.org/D34685 llvm-svn: 308335
* [ELF] - Make LLD remove gnu-lib compression prefix (".z") after ↵George Rimar2017-06-051-0/+45
decompression when using -r This is PR33289. Previously LLD leaved section naming as is and that lead to wrong result, because we decompress sections when using -r, and hence should remove ".z" prefix. Differential revision: https://reviews.llvm.org/D33885 llvm-svn: 304711
OpenPOWER on IntegriCloud