summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/weak-undef.s
Commit message (Collapse)AuthorAgeFilesLines
* [ELF][test] Improve testsFangrui Song2019-09-071-5/+5
| | | | | | | | | | | | | | Add file-level comments Delete insignificant addresses to make them more tolerant to layout changes Simplify test output Delete weak-undef-val.s - covered by relocation-undefined-weak.s Delete weak-undef-export.s - covered by additional test added to weak-undef.s Delete version-undef-sym.s - covered by undefined-versioned-symbol.s => version-symbol-undef.s Delete symbol-ordering-file2.s - covered by symbol-ordering-file.s Delete gotpcrelx.s - covered by gotpc-relax-und-dso.s => x86-64-gotpc-relax-und-dso.s llvm-svn: 371299
* [test] Change llvm-readobj -long-option to --long-option or well-known short ↵Fangrui Song2019-05-011-1/+1
| | | | | | | | | | | | 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
* [ELF] Emit weak-undef symbols in .dynsym of a PIE binary only if linked ↵Siva Chandra2019-03-181-1/+3
| | | | | | | | | | | | | | against shared libs. Reviewers: espindola Subscribers: emaste, arichardson, MaskRay, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D59275 llvm-svn: 356374
* [ELF] Remove checking for spurious '@' at the end of dynamic sym namesJames Henderson2019-01-081-2/+2
| | | | | | | | | | | | llvm-readobj currently has a bug (see PR40097) where it prints '@' at the end of unversioned dynamic symbols. This bug will be fixed in a separate later commit, but these tests need fixing first. Reviewed by: ruiu, Higuoxing Differential Revision: https://reviews.llvm.org/D56388 llvm-svn: 350614
* [ELF] Make tests with undefined symbols more explicit.Igor Kudrin2017-11-241-0/+3
| | | | | | Differential Revision: https://reviews.llvm.org/D40253 llvm-svn: 318939
* Keep some relocations with undefined weak symbols.Rafael Espindola2017-09-151-0/+9
| | | | | | | | | | | | | | | | | | | This fixes pr34301. As the bug points out, we want to keep some relocations with undefined weak symbols. This means that we cannot always claim that these symbols are not preemptible as we do now. Unfortunately, we cannot also just always claim that they are preemptible. Doing so would, for example, cause us to try to create a plt entry when we don't even have a dynamic symbol table. What almost works is to say that weak undefined symbols are preemptible if and only if we have a dynamic symbol table. Almost because we don't want to fail the build trying to create a copy relocation to a weak undefined. llvm-svn: 313372
* Remove string table offsets from tests.Rui Ueyama2016-11-011-1/+1
| | | | | | <N> where "foo (<N>)" is the offset of string "foo" in the string table. llvm-svn: 285751
* ELF: Simplify preemption logic. Do not include weak undefined symbols in ↵Peter Collingbourne2016-04-241-0/+21
non-DSOs. Add a test for -Bsymbolic + undefined symbols. llvm-svn: 267323
OpenPOWER on IntegriCloud