summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/exclude-libs.s
Commit message (Collapse)AuthorAgeFilesLines
* [test] Change llvm-readobj -long-option to --long-option or well-known short ↵Fangrui Song2019-05-011-8/+8
| | | | | | | | | | | | 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
* Also search BitcodeFiles for exclude-lib symbolsYi Kong2018-07-111-3/+7
| | | | | | | | Archives created with ThinLTO are bitcodes, they also need to be searched for excluded symbols. Differential Revision: https://reviews.llvm.org/D48857 llvm-svn: 336826
* ELF: Stop collecting a list of symbols in ArchiveFile.Peter Collingbourne2018-02-161-1/+6
| | | | | | | | | | | | There seems to be no reason to collect this list of symbols. Also fix a bug where --exclude-libs would apply to all symbols that appear in an archive's symbol table, even if the relevant archive member was not added to the link. Differential Revision: https://reviews.llvm.org/D43369 llvm-svn: 325380
* [lld] Fix --exclude-libs broken when --whole-archive is usedOleg Ranevskyy2017-10-311-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: **Problem** `--exclude-libs` does not work for static libraries affected by the `--whole-archive` option. **Description** `--exclude-libs` creates a list of static library paths and does library lookups in this list. `--whole-archive` splits the static libraries that follow it into separate objects. As a result, lld no longer sees static libraries among linked files and does no `--exclude-libs` lookups. **Solution** The proposed solution is to make `--exclude-libs` consider object files too. When lld finds an object file it checks whether this file originates from an archive and, if so, looks the archive up in the `--exclude-libs` list. Reviewers: ruiu, rafael Reviewed By: ruiu Subscribers: asl, ikudrin, llvm-commits, emaste Tags: #lld Differential Revision: https://reviews.llvm.org/D39353 llvm-svn: 316998
* Implement the --exclude-libs option.Rui Ueyama2017-06-211-0/+30
The --exclude-libs option is not a popular option, but at least some programs in Android depend on it, so it's worth to support it. Differential Revision: https://reviews.llvm.org/D34422 llvm-svn: 305920
OpenPOWER on IntegriCloud