summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove PPC ELF targetGreg Fitzgerald2015-01-281-67/+0
| | | | | | Differential Revision: http://reviews.llvm.org/D7225 llvm-svn: 227320
* ELF: Support detection of relocation errors during processingWill Newton2015-01-201-3/+0
| | | | | | | | | | | 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-3/+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
* [PPC] Remove redundant `virtual` keywordSimon Atanasyan2015-01-161-3/+3
| | | | | | No functional changes. llvm-svn: 226258
* [PPC] Remove unused class field PPCTargetRelocationHandler::_ppcTargetLayoutSimon Atanasyan2015-01-161-7/+2
| | | | | | No functional changes. llvm-svn: 226257
* [cleanup] Re-sort #include lines using llvm/utils/sort_includes.pyChandler Carruth2015-01-141-1/+1
| | | | | | | | This is just a mechanical cleanup, no functionality changed. This just fixes very minor inconsistencies with how #include lines were spaced and sorted in LLD. llvm-svn: 225978
* ELF: Add a standard method for unknown relocation errorsWill Newton2014-12-091-3/+3
| | | | | | | | | | | | | | | | | | | 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
* [ELF] Check for target architecture.Shankar Easwaran2014-10-201-1/+9
| | | | | | | | | | The canParse function for all the ELF subtargets check if the input files match the subtarget. There were few mismatches in the input files that didnt match the subtarget for which the link was being invoked, which also acts as a test for this change. llvm-svn: 220182
* 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-5/+5
| | | | llvm-svn: 205056
* [C++11] Switch from LLVM_FINAL to just "final" now that all of LLVM isChandler Carruth2014-03-021-2/+2
| | | | | | requiring MSVC 2012 or newer. llvm-svn: 202626
* [ELF] Make changes to all the targets supported currentlyShankar Easwaran2014-01-271-8/+22
| | | | | | | | X86_64,X86,PPC,Hexagon,Mips No change in functionality. llvm-svn: 200177
* [ELF] Add Target specific Readers.Shankar Easwaran2014-01-271-1/+1
| | | | | | No change in functionality. llvm-svn: 200175
* Run clang-format on r197727.Rui Ueyama2013-12-201-4/+2
| | | | llvm-svn: 197788
* [lld] fix unused variable warningsNick Kledzik2013-12-191-4/+1
| | | | llvm-svn: 197737
* [lld] Introduce registry and Reference kind tupleNick Kledzik2013-12-191-0/+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
* Fix include guards.Rui Ueyama2013-11-151-2/+2
| | | | llvm-svn: 194776
* Replace ErrorOr<void> with error_code.Rafael Espindola2013-11-051-3/+3
| | | | | | 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/+1
| | | | llvm-svn: 192310
* Rename TargetInfo -> LinkingContext.Rui Ueyama2013-08-061-4/+5
| | | | | | | | | 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-1/+1
| | | | | | | | | | | | non-ELF writers. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D977 llvm-svn: 184061
* [ELF] Use the target's LayoutHandler.Michael J. Spencer2013-01-301-0/+6
| | | | llvm-svn: 173966
* [ELF] Add {Hexagon,PPC,X86}TargetHandler.Michael J. Spencer2013-01-301-0/+48
llvm-svn: 173909
OpenPOWER on IntegriCloud