summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/entry.s
Commit message (Collapse)AuthorAgeFilesLines
* [ELF][X86] Allow PT_LOAD to have overlapping p_offset ranges on EM_X86_64Fangrui Song2019-09-161-6/+6
| | | | | | | | Port the D64906 technique to EM_X86_64. Differential Revision: https://reviews.llvm.org/D67482 llvm-svn: 371958
* [test] Change llvm-readobj -long-option to --long-option or well-known short ↵Fangrui Song2019-05-011-7/+7
| | | | | | | | | | | | 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
* [lld] Add REQUIRES: x86 where needed to testsJoel Jones2018-06-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | If building lld without x86 support, tests that require that support should be treated as unsupported, not errors. Tested using: 1. cmake '-DLLVM_TARGETS_TO_BUILD=AArch64;X86' make check-lld => Expected Passes : 1406 Unsupported Tests : 287 2. cmake '-DLLVM_TARGETS_TO_BUILD=AArch64' make check-lld => Expected Passes : 410 Unsupported Tests : 1283 Patch by Joel Jones Differential Revision: https://reviews.llvm.org/D47748 llvm-svn: 334095
* [ELF] Do not warn about missed entry symbol in case of relocatable outputSimon Atanasyan2016-12-201-0/+3
| | | | | | | Relocatable file does not need to have an entry symbol so the warning is useless in that case. llvm-svn: 290206
* Set default entry point to .text if no entry point is found.Rui Ueyama2016-11-231-12/+29
| | | | | | | | | Previously, if a symbol specified by -e or ENTRY() is not found, we didn't set entry point address. That is incompatible with GNU because GNU linkers set the first address of .text to entry. This patch implement that behavior. llvm-svn: 287836
* lld: Default image base address to 0x200000 on x86-64Ed Maste2016-11-231-1/+1
| | | | | | | | | Align to the large page size (known as a superpage or huge page). FreeBSD automatically promotes large, superpage-aligned allocations. Differential Revision: https://reviews.llvm.org/D27042 llvm-svn: 287782
* Include ARGV[0] in error messages.Rui Ueyama2016-10-191-2/+2
| | | | | | | | This is what other linkers and clang driver do. Differential Revision: https://reviews.llvm.org/D25780 llvm-svn: 284634
* [ELF] Add "error" and "warning" prefixes to linker messagesEugene Leviant2016-10-191-4/+4
| | | | | | Differential revision: https://reviews.llvm.org/D25729 llvm-svn: 284575
* [ELF] - Fix for: Bug 30521 - lld exits non-zero return value linking a ↵George Rimar2016-09-261-1/+9
| | | | | | | | | | | | | | | | | | library with no entry symbol PR30521 was about linking shared library. After r282295 code when linking -shared produced "entry symbol not found" warning, what in combination with --fatal-errors failed linkage. Patch fixes logic (and adds testcases) to follow next rules: 1) If entry was specified and not found report warning. 2) If entry was not specified then: a) Emit warning if not -shared. b) Do not emit warning if -shared. Differential revision: https://reviews.llvm.org/D24913 llvm-svn: 282427
* Warn if we can't find the entry symbol.Rafael Espindola2016-09-231-1/+3
| | | | | | Fixes pr30465. llvm-svn: 282295
* Set entry address to 0x0 if no _start symbolEugene Leviant2016-09-081-1/+3
| | | | | | Differential revision: https://reviews.llvm.org/D23925 llvm-svn: 280912
* [ELF] Support --entry= option variant. Update tests while I'm there.Davide Italiano2016-07-041-2/+2
| | | | llvm-svn: 274524
* ELF: Allow -e <entry> with -sharedEd Maste2015-12-111-0/+3
| | | | | | | | | | | | It is reasonable to specify an entry point for shared objects - for example, for the FreeBSD rtld ld-elf.so.1. Unlike GNU ld we leave the entry address as 0 if -shared is specified without -e. Differential Revision: http://reviews.llvm.org/D15454 llvm-svn: 255349
* Test that -e <symbol> worksEd Maste2015-12-111-1/+2
| | | | llvm-svn: 255347
* [ELF] Define symbols "_end" and "end" if referenced.Igor Kudrin2015-11-201-3/+3
| | | | | | | | | | These symbols are expected to point to the end of the data segment. Implements http://llvm.org/pr25528. Differential Revision: http://reviews.llvm.org/D14833 llvm-svn: 253637
* Rename ld.lld2 to ld.lld since it is the default.Rafael Espindola2015-11-181-5/+5
| | | | llvm-svn: 253437
* Rename test/elf2 to test/ELF.Rafael Espindola2015-11-171-0/+17
llvm-svn: 253313
OpenPOWER on IntegriCloud