summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/strip-debug.s
Commit message (Collapse)AuthorAgeFilesLines
* [test] Change llvm-readobj -long-option to --long-option or well-known short ↵Fangrui Song2019-05-011-3/+3
| | | | | | | | | | | | 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
* Fix a broken buildbot.Rui Ueyama2018-10-081-1/+1
| | | | llvm-svn: 343983
* Avoid unnecessary buffer allocation and memcpy for compressed sections.Rui Ueyama2018-10-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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] - Teach LLD to strip .zdebug_* sections when --strip-debug/--strip-all ↵George Rimar2017-11-031-19/+8
| | | | | | | | | | | is specified. Currently we do not strip .zdebug_*, what looks wrong. Also this simplifies the testcase we have for this options. Differential revision: https://reviews.llvm.org/D39552 llvm-svn: 317306
* ELF: Define -S as an alias for --strip-debug.Rui Ueyama2016-04-071-0/+2
| | | | llvm-svn: 265723
* ELF: Add --strip-debug option.Rui Ueyama2016-04-071-0/+23
If --strip-debug option is given, then all sections whose names start with ".debug" are removed from output. llvm-svn: 265722
OpenPOWER on IntegriCloud