summaryrefslogtreecommitdiffstats
path: root/lld/ELF/InputSection.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* ELF2: Make singleton output sections globally accessible.Rui Ueyama2015-10-071-16/+8
| | | | | | | | | | | | | | | Previously, output sections that are handled specially by the linker (e.g. PLT or GOT) were created by Writer and passed to other classes that need them. The problem was that because these special sections are required by so many classes, the plumbing work became too much burden. This patch is to simply make them accessible from anywhere in the linker to eliminate the plumbing work once and for all. http://reviews.llvm.org/D13486 llvm-svn: 249590
* ELF2: Rename local variable name `Out` in preparation to define `Out` global ↵Rui Ueyama2015-10-071-1/+1
| | | | | | var. llvm-svn: 249568
* Handle strong undefined symbols fetching members after a weak undefined.Rafael Espindola2015-10-061-2/+1
| | | | | | | | | | This is a case that requires --start-group --end-group with regular ELF linkers. Fortunately it is still possible to handle it with lazy symbols without taking a second look at archives. Thanks to Michael Spencer for the bug report. llvm-svn: 249406
* Start adding support for static programs using dynamic libraries.Rafael Espindola2015-09-291-2/+2
| | | | | | This is just enough for a hello world using a dynamic glibc. llvm-svn: 248854
* Add support for R_386_GOT32.Rafael Espindola2015-09-291-3/+4
| | | | llvm-svn: 248799
* Don't apply a relocation if we create a dynamic reloc.Rafael Espindola2015-09-291-0/+2
| | | | | | | With RELA that is just wasteful, with REL the relocation gets applied twice. llvm-svn: 248795
* Add R_386_GOTPC support.Rafael Espindola2015-09-291-0/+3
| | | | llvm-svn: 248793
* Add support for got/ptl referring to symbols defined in .o files.Rafael Espindola2015-09-281-10/+4
| | | | llvm-svn: 248730
* Implement --noinhibit-exec.Rafael Espindola2015-09-251-0/+1
| | | | | | Patch by George Rimar! llvm-svn: 248605
* Move more logic to getSymVA to avoid code duplication.Rafael Espindola2015-09-251-29/+9
| | | | llvm-svn: 248599
* Simplify memory management by having ELFData contain a ELFObj.Rafael Espindola2015-09-241-8/+8
| | | | llvm-svn: 248502
* Add support for relocating R_X86_64_GOTPCREL.Rafael Espindola2015-09-231-6/+9
| | | | llvm-svn: 248425
* [elf2] Pass BSSSec to the relocation handling code differently. Don't store ↵Michael J. Spencer2015-09-231-5/+10
| | | | | | it in the symbol. llvm-svn: 248393
* Move relocation processing to Target.Rafael Espindola2015-09-221-54/+2
| | | | | | I will add a couple of ppc64 relocs in the next patches. llvm-svn: 248319
* Start adding target abstractions.Rafael Espindola2015-09-221-4/+5
| | | | | | | | | | This is just enough to get PLT working on 32 bit x86. The idea behind using a virtual interface is that it should be easy to convert any of the functions to template parameters if any turns out to be performance critical. llvm-svn: 248308
* Add support for R_386_PC32.Rafael Espindola2015-09-221-0/+3
| | | | llvm-svn: 248275
* Handle implicit addends in Elf_Rel.Rafael Espindola2015-09-221-1/+2
| | | | llvm-svn: 248272
* Remove unnecessary parenthesis.Rafael Espindola2015-09-221-1/+1
| | | | llvm-svn: 248270
* Rename Chunks.(h|cpp) to InputSection.(h|cpp). NFC.Rafael Espindola2015-09-221-0/+171
llvm-svn: 248226
OpenPOWER on IntegriCloud