summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/Mips
Commit message (Collapse)AuthorAgeFilesLines
...
* [ELF] Customize dynamic table tag used for .got.plt section referencing.Simon Atanasyan2014-02-021-0/+2
| | | | | | The patch reviewed by Shankar Easwaran and Rui Ueyama. llvm-svn: 200630
* [Mips] Declare MipsDynamicTable class in a separate header file.Simon Atanasyan2014-01-284-81/+107
| | | | llvm-svn: 200328
* [ELF] Make changes to all the targets supported currentlyShankar Easwaran2014-01-278-243/+462
| | | | | | | | X86_64,X86,PPC,Hexagon,Mips No change in functionality. llvm-svn: 200177
* [ELF] Rename File.h to ELFFile.h to avoid confusion.Shankar Easwaran2014-01-261-1/+1
| | | | | | No change in functionality. llvm-svn: 200166
* [ELF] Customize a relocation table output format (rel / rela).Simon Atanasyan2014-01-241-0/+1
| | | | | | | | | | Add new virtual virtual function `isRelaOutputFormat` to the `ELFLinkingContext` class. Call this function everywhere we need to select a relocation table format. Patch reviewed by Shankar Easwaran and Rui Ueyama. llvm-svn: 199973
* [Mips] Emit ELF header for MIPS target. ELF flags set is mostly hardcoded.Simon Atanasyan2014-01-182-0/+23
| | | | | | | Later we need to improve that solution and build a correct set of flags by merging ELF flags from all input objects. llvm-svn: 199555
* [Mips] Simplify calculations of relocations - replace scatterBits callsSimon Atanasyan2014-01-181-14/+7
| | | | | | by bitwise AND operator and remove redundant local variables. llvm-svn: 199554
* [Mips] Allocate local GOT entry for a global symbol defined in anSimon Atanasyan2014-01-171-1/+9
| | | | | | executable file. llvm-svn: 199517
* [Mips] Implement .plt and .got.plt section creation.Simon Atanasyan2014-01-176-3/+182
| | | | llvm-svn: 199516
* [Mips] Handle R_MIPS_26 relocation. Maintaining of .plt and .got.pltSimon Atanasyan2014-01-174-1/+37
| | | | | | sections will be implemented later. llvm-svn: 199515
* [Mips] Provide default name of MIPS-specific interpreter.Simon Atanasyan2014-01-172-0/+5
| | | | llvm-svn: 199514
* [Mips] Do not forget to initialize a class field.Simon Atanasyan2014-01-141-1/+1
| | | | llvm-svn: 199241
* [Mips] Calculate gp value only once.Simon Atanasyan2014-01-141-7/+5
| | | | llvm-svn: 199240
* [Mips] Create and initialize _gp symbol.Simon Atanasyan2014-01-141-0/+7
| | | | llvm-svn: 199239
* [Mips] Do not store a pointer to the AtomLayout related to theSimon Atanasyan2014-01-142-3/+1
| | | | | | | _GLOBAL_OFFSET_TABLE_ symbol. We do not use this ponter anywhere after assigning of virtual address. llvm-svn: 199237
* [Mips] Factor out constant represents gp value offset to theSimon Atanasyan2014-01-142-1/+5
| | | | | | MipsTargetLayout class method. llvm-svn: 199236
* [Mips] Set default base address for MIPS executables to 0x400000. AssignSimon Atanasyan2014-01-143-1/+23
| | | | | | the lowest segment address to the MIPS_BASE_ADDRESS dynamic tag. llvm-svn: 199234
* [Mips] Reduce the number of type-casting calls.Simon Atanasyan2014-01-091-6/+7
| | | | llvm-svn: 198855
* [Mips] Remove unnecessary #include pragma.Simon Atanasyan2014-01-081-2/+0
| | | | llvm-svn: 198798
* [Mips] GOT16 relocation against non-local symbol does not require aSimon Atanasyan2014-01-084-1/+16
| | | | | | paired LO16 relocation. llvm-svn: 198790
* [Mips] Add assert to check that we handle all paired relocations.Simon Atanasyan2014-01-082-0/+6
| | | | llvm-svn: 198789
* [Mips] Factor out the code determines type of GOT entry (local/global)Simon Atanasyan2014-01-082-11/+27
| | | | | | into the separate function. llvm-svn: 198788
* [Mips] Do not use standard relocation identifier R_MIPS_NONE forSimon Atanasyan2014-01-085-6/+20
| | | | | | internal purpose. Use special LLD_R_MIPS_GLOBAL_GOT constant for that. llvm-svn: 198787
* [Mips] Rename function to better reflect its purpose.Simon Atanasyan2014-01-081-2/+2
| | | | llvm-svn: 198786
* [Mips] Do not save GOT headers atoms into the RelocationPass classSimon Atanasyan2014-01-081-9/+3
| | | | | | fields. llvm-svn: 198785
* [Mips] Rename some classes to skip redundant mentioning of 'mips'.Simon Atanasyan2014-01-081-14/+14
| | | | llvm-svn: 198784
* [Mips] Move MipsGOTPass implementation to the separate file.Simon Atanasyan2014-01-084-153/+205
| | | | llvm-svn: 198783
* Run clang-format on r197727.Rui Ueyama2013-12-201-13/+6
| | | | llvm-svn: 197788
* [lld] fix unused variable warningsNick Kledzik2013-12-192-2/+1
| | | | llvm-svn: 197737
* [lld] Introduce registry and Reference kind tupleNick Kledzik2013-12-196-57/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [Mips] Explicitly cast ulittle32_t to the uint32_t to fix Visual StudioSimon Atanasyan2013-12-151-1/+1
| | | | | | compile error. llvm-svn: 197344
* Linking of shared libraries for MIPS little-endian 32-bit target.Simon Atanasyan2013-12-159-0/+854
The following are the most significant peculiarities of MIPS target: - MIPS ABI requires some special tags in the dynamic table. - GOT consists of two parts local and global. The local part contains entries refer locally visible symbols. The global part contains entries refer global symbols. - Entries in the .dynsym section which have corresponded entries in the GOT should be: * Emitted at the end of .dynsym section * Sorted accordingly to theirs GOT counterparts - There are "paired" relocations. One or more R_MIPS_HI16 and R_MIPS_GOT16 relocations should be followed by R_MIPS_LO16 relocation. To calculate result of R_MIPS_HI16 and R_MIPS_GOT16 relocations we need to combine addends from these relocations and paired R_MIPS_LO16 relocation. The patch reviewed by Michael Spencer, Shankar Easwaran, Rui Ueyama. http://llvm-reviews.chandlerc.com/D2156 llvm-svn: 197342
OpenPOWER on IntegriCloud