summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove the old ELF linker.Rafael Espindola2016-02-281-86/+0
| | | | | | I think it is clear by now that the new linker is viable. llvm-svn: 262158
* ELF: Remove redundant namespace qualifiers.Rui Ueyama2015-04-141-1/+1
| | | | llvm-svn: 234938
* [ELF] Simplify adding default atomsSimon Atanasyan2015-04-071-14/+5
| | | | | | | | | | | | | | | | | | | | | Now 'writer' creates an instance of `RuntimeFile` in the constructor, then populates the file in the virtual function `addDefaultAtoms`, then pass owning of this file to the caller of virtual function `createImplicitFiles`. First, we do not need to keep an instance of `RuntimeFile` so long. It is enough to create the file, right after that populate it and pass the owning. Second, relationship between `createImplicitFiles` and `addDefaultAtoms` is complicated. The `createImplicitFiles` might call `addDefaultAtoms`, overridden version of `addDefaultAtoms` might call base class `addDefaultAtoms`, and overridden version of `createImplicitFiles` might call base class `createImplicitFiles` as well as `addDefaultAtoms`. The patch solves both problems above. It creates and populates runtime files right in the createImplicitFiles(), removes `addDefaultAtoms` at all and does not keep references to runtime files in class fields. llvm-svn: 234347
* Replace the `createImplicitFiles` method return type with `void`Simon Atanasyan2015-04-061-3/+2
| | | | | | | All instances of the `createImplicitFiles` always return `true` and this return value is used nowhere. llvm-svn: 234205
* [LinkerScript] Handle symbols defined in linker scripts in case of shared libSimon Atanasyan2015-04-061-0/+2
| | | | | | | This patch is a follow-up to the rL232409 and allows define symbols in a linker script in case of linking shared library. llvm-svn: 234163
* [ELF] Use override keyword instead of virtualSimon Atanasyan2015-04-061-4/+4
| | | | | | No functional changes. llvm-svn: 234157
* [ELF] Remove redundant forward class declarationsSimon Atanasyan2015-04-061-3/+0
| | | | | | No functional changes. llvm-svn: 234156
* ELF: Make findAbsoluteAtom return AtomLayout* instead of an iterator.Rui Ueyama2015-03-311-3/+4
| | | | | | | | | | | All calls of findAbsoluteAtoms seem a bit awkward because of the type of the function. It semantically returns a pointer to an AtomLayout or nothing, so I made the function return AtomLayout*. In this patch, I also expanded some "auto"s because their actual type were not obvious in their contexts. llvm-svn: 233769
* Rename ELFLinkingContext instances "ctx" intead of "context".Rui Ueyama2015-03-271-3/+3
| | | | llvm-svn: 233344
* [ELF] GLOBAL_OFFSET_TABLE is a hidden symbolShankar Easwaran2015-03-201-1/+1
| | | | llvm-svn: 232868
* [LinkerScript] Handle symbols defined in linker scriptsRafael Auler2015-03-161-2/+2
| | | | | | | | | | Puts symbols defined in linker script expressions in a runtime file that is added as input to the resolver, making the input object files see symbols defined in linker scripts. http://reviews.llvm.org/D8263 llvm-svn: 232409
* [ELF] Add LinkingContext to the ELFReader.Shankar Easwaran2015-02-121-2/+1
| | | | | | | | | | | | | | | This adds the LinkingContext parameter to the ELFReader. Previously the flags in that were needed in the Context was passed to the ELFReader, this made it very hard to access data structures in the LinkingContext when reading an ELF file. This change makes the ELFReader more flexible so that required parameters can be grabbed directly from the LinkingContext. Future patches make use of the changes. There is no change in functionality though. llvm-svn: 228905
* [ELF] Make changes to all the targets supported currentlyShankar Easwaran2014-01-271-14/+13
| | | | | | | | X86_64,X86,PPC,Hexagon,Mips No change in functionality. llvm-svn: 200177
* [lld][InputGraph] Change the Resolver to use inputGraphShankar Easwaran2013-10-071-10/+10
| | | | | | | | | | | | Changes :- a) Functionality in InputGraph to insert Input elements at any position b) Functionality in the Resolver to use nextFile c) Move the functionality of assigning file ordinals to InputGraph d) Changes all inputs to MemoryBuffers e) Remove LinkerInput, InputFiles, ReaderArchive llvm-svn: 192081
* Add _end symbol for dynamic libraries. At least brk/sbrk in libc onJoerg Sonnenberger2013-09-141-4/+29
| | | | | | NetBSD need it. llvm-svn: 190752
* Rename TargetInfo -> LinkingContext.Rui Ueyama2013-08-061-2/+2
| | | | | | | | | Also change some local variable names: "ti" -> "context" and "_targetInfo" -> "_context". Differential Revision: http://llvm-reviews.chandlerc.com/D1301 llvm-svn: 187823
* [ELF] add -u/--undefined option, to define undefined symbolsShankar Easwaran2013-06-191-6/+0
| | | | llvm-svn: 184266
* [ELF][Hexagon] Create .got.plt entries with the appropriate alignmentShankar Easwaran2013-04-011-0/+3
| | | | llvm-svn: 178467
* [lld] remove trailing whitespaceShankar Easwaran2013-03-141-3/+3
| | | | llvm-svn: 177079
* [ELF] Create baseclass for all ELF writersShankar Easwaran2013-03-081-292/+11
| | | | llvm-svn: 176724
* [ELF] Remove commentShankar Easwaran2013-03-051-0/+357
llvm-svn: 176482
OpenPOWER on IntegriCloud