summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/DynamicFile.h
Commit message (Collapse)AuthorAgeFilesLines
* [ELF] Add "override" and remove "virtual".Rui Ueyama2014-03-281-6/+6
| | | | llvm-svn: 205056
* [ELF] Add Target specific Readers.Shankar Easwaran2014-01-271-1/+1
| | | | | | No change in functionality. llvm-svn: 200175
* [ELF] Separate implementation from the class declaration.Shankar Easwaran2014-01-261-46/+50
| | | | | | | | ELFFile would be a class that rest of the targets would derive from. To keep the implementation clean, separate the implementation from rest of the Header file. llvm-svn: 200168
* Use getError instead of the error_code operator.Rafael Espindola2014-01-081-2/+2
| | | | llvm-svn: 198797
* Run clang-format on r197727.Rui Ueyama2013-12-201-3/+2
| | | | llvm-svn: 197788
* [lld] Introduce registry and Reference kind tupleNick Kledzik2013-12-191-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main changes are in: include/lld/Core/Reference.h include/lld/ReaderWriter/Reader.h Everything else is details to support the main change. 1) Registration based Readers Previously, lld had a tangled interdependency with all the Readers. It would have been impossible to make a streamlined linker (say for a JIT) which just supported one file format and one architecture (no yaml, no archives, etc). The old model also required a LinkingContext to read an object file, which would have made .o inspection tools awkward. The new model is that there is a global Registry object. You programmatically register the Readers you want with the registry object. Whenever you need to read/parse a file, you ask the registry to do it, and the registry tries each registered reader. For ease of use with the existing lld code base, there is one Registry object inside the LinkingContext object. 2) Changing kind value to be a tuple Beside Readers, the registry also keeps track of the mapping for Reference Kind values to and from strings. Along with that, this patch also fixes an ambiguity with the previous Reference::Kind values. The problem was that we wanted to reuse existing relocation type values as Reference::Kind values. But then how can the YAML write know how to convert a value to a string? The fix is to change the 32-bit Reference::Kind into a tuple with an 8-bit namespace (e.g. ELF, COFFF, etc), an 8-bit architecture (e.g. x86_64, PowerPC, etc), and a 16-bit value. This tuple system allows conversion to and from strings with no ambiguities. llvm-svn: 197727
* A weak reference to a symbol that is only weakly referenced inJoerg Sonnenberger2013-09-031-1/+3
| | | | | | dependencies should remain weak, not get promoted to undef or dropped. llvm-svn: 189793
* Rename ti -> ctx.Rui Ueyama2013-08-271-3/+3
| | | | | | | This should have been done in r187823 when I renamed LinkingContext from TargetInfo. I missed a few files. llvm-svn: 189298
* Update to llvm changes.Michael J. Spencer2013-08-081-23/+16
| | | | llvm-svn: 188021
* Rename TargetInfo -> LinkingContext.Rui Ueyama2013-08-061-8/+10
| | | | | | | | | Also change some local variable names: "ti" -> "context" and "_targetInfo" -> "_context". Differential Revision: http://llvm-reviews.chandlerc.com/D1301 llvm-svn: 187823
* This adds functionality for undefined atoms from dynamic libraries to be addedShankar Easwaran2013-04-111-9/+20
| | | | | | | | | | | | to the list of undefined atoms. The processing of undefined atoms from dynamic libraries is controlled by use-shlib-undefines command line option. This patch also adds additional command line arguments to allow/disallow unresolved symbols from shared libraries and mimics GNU ld behavior. llvm-svn: 179257
* Set ordinals correctly.Michael J. Spencer2013-03-201-4/+0
| | | | | | | This actually doesn't change behavior with the current LinkerInvocation, but it's needed when you make reading parallel. llvm-svn: 177554
* [ELF] Fix memory leak by deleting BumpPtr allocated objects.Michael J. Spencer2013-02-191-4/+4
| | | | llvm-svn: 175558
* [Core,Driver,ELF] Differentiate static and dynamic executables.Michael J. Spencer2013-02-141-2/+3
| | | | | | | This also adds a simple relocation change for dynamic executables to x86-64 ELF. llvm-svn: 175208
* [ELF] Add support for reading dynamic libraries.Michael J. Spencer2013-02-111-0/+132
llvm-svn: 174916
OpenPOWER on IntegriCloud