summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove the old ELF linker.Rafael Espindola2016-02-281-33/+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: Define ELF{32,64}{LE,BE} types and use them everywhere.Rui Ueyama2015-04-141-2/+0
| | | | llvm-svn: 234823
* ELF: Remove useless templates that takes always the same ELF type.Rui Ueyama2015-04-141-3/+3
| | | | llvm-svn: 234820
* ELF: Fix header file dependencies.Rui Ueyama2015-04-031-4/+4
| | | | | | | <Arch>TargetHandler.h and <ArcH>RelocationHandler.h include each other. This patch breaks the circular dependencies. llvm-svn: 234050
* Remove "_hexagon" prefix from some member variables.Rui Ueyama2015-03-311-2/+2
| | | | | | | At least in Mips we don't have a prefix for member variables. Repeating the architecture is verbose. llvm-svn: 233746
* ELF: Support detection of relocation errors during processingWill Newton2015-01-201-3/+2
| | | | | | | | | | | At the moment errors in relocation processing such as out of range values are not detected or at best trapped by asserts which will not be present in release builds. This patch adds support for checking error return values from applyRelocation() calls and printing an appropriate error message. It also adds support for printing multiple errors rather than just the first one. llvm-svn: 226557
* [ELF] Make `TargetRelocationHandler` a regular non-template classSimon Atanasyan2015-01-161-4/+2
| | | | | | | This class defines a relocation handler interface. The interface does not depend on the template argument so the argument is redundant. llvm-svn: 226259
* ELF: Add a standard method for unknown relocation errorsWill Newton2014-12-091-2/+4
| | | | | | | | | | | | | | | | | | | At present each TargetRelocationHandler generates a pretty similar error string and calls llvm_unreachable() when encountering an unknown relocation. This is not ideal for two reasons: 1. llvm_unreachable disappears in release builds but we still want to know if we encountered a relocation we couldn't handle in release builds. 2. Duplication is bad - there is no need to have a per-architecture error message. This change adds a test for AArch64 to test whether or not the error message actually works. The other architectures have not been tested but they compile and check-lld passes. llvm-svn: 223782
* Revert "[ELF][AllArchs] Fix includes"Shankar Easwaran2014-10-081-2/+2
| | | | | | This reverts commit e137dd93e1291a2d2fa7f41c8f8bcdb59c8b3225. llvm-svn: 219313
* [ELF][AllArchs] Fix includesShankar Easwaran2014-10-081-2/+2
| | | | llvm-svn: 219278
* More prefixing of error_code.Rafael Espindola2014-06-121-3/+3
| | | | llvm-svn: 210831
* [ELF] Add "override" and remove "virtual".Rui Ueyama2014-03-281-3/+3
| | | | llvm-svn: 205056
* [ELF] Remove unused fields (linking context references).Simon Atanasyan2014-03-191-5/+2
| | | | llvm-svn: 204222
* [C++11] Switch from LLVM_FINAL to just "final" now that all of LLVM isChandler Carruth2014-03-021-1/+1
| | | | | | requiring MSVC 2012 or newer. llvm-svn: 202626
* [ELF] Make changes to all the targets supported currentlyShankar Easwaran2014-01-271-10/+8
| | | | | | | | X86_64,X86,PPC,Hexagon,Mips No change in functionality. llvm-svn: 200177
* Run clang-format on r197727.Rui Ueyama2013-12-201-2/+2
| | | | llvm-svn: 197788
* [lld] fix unused variable warningsNick Kledzik2013-12-191-2/+1
| | | | llvm-svn: 197737
* [lld] Introduce registry and Reference kind tupleNick Kledzik2013-12-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix include guards.Rui Ueyama2013-11-151-2/+2
| | | | llvm-svn: 194776
* Replace ErrorOr<void> with error_code.Rafael Espindola2013-11-051-1/+1
| | | | | | It was never transporting any value in addition to the error_code. llvm-svn: 194028
* [ELF] Change MaxAlignment to 2.Shankar Easwaran2013-10-091-1/+0
| | | | llvm-svn: 192310
* Rename TargetInfo -> LinkingContext.Rui Ueyama2013-08-061-4/+4
| | | | | | | | | Also change some local variable names: "ti" -> "context" and "_targetInfo" -> "_context". Differential Revision: http://llvm-reviews.chandlerc.com/D1301 llvm-svn: 187823
* [lld] Move AtomLayout from ELF to ReaderWriter so that it can be used by ↵Rui Ueyama2013-06-161-2/+2
| | | | | | | | | | | | non-ELF writers. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D977 llvm-svn: 184061
* [ELF][Hexagon] add GOTREL/GOT relocationsShankar Easwaran2013-03-261-2/+3
| | | | llvm-svn: 177970
* [lld] remove trailing whitespaceShankar Easwaran2013-03-141-1/+1
| | | | llvm-svn: 177079
* [ELF][Hexagon] add quickdata relocationsShankar Easwaran2013-02-281-8/+13
| | | | llvm-svn: 176298
* fixing typo in header fileShankar Easwaran2013-02-271-3/+2
| | | | llvm-svn: 176162
* add proper copyright headerShankar Easwaran2013-02-011-1/+1
| | | | llvm-svn: 174178
* add hexagon scatter bits and split hexgontargethandler to ↵Shankar Easwaran2013-02-011-0/+37
hexagonrelocationhander llvm-svn: 174148
OpenPOWER on IntegriCloud