Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [Core] Use LLVM's ErrorOr<T>. | Michael J. Spencer | 2013-01-20 | 1 | -1/+1 | |
| | | | | llvm-svn: 172993 | |||||
* | Replace the 'final' keyword with 'LLVM_FINAL' as GCC 4.6 doesn't support | Chandler Carruth | 2013-01-19 | 1 | -4/+4 | |
| | | | | | | | | | | the keyword. If anyone cares deeply about the final optimizations with GCC, we might want to add a version test to the LLVM definition, but I'm perfectly happy with this just only firing under Clang and modern MSVC builds. llvm-svn: 172898 | |||||
* | [ELF] Use operator new(std::size_t, BumpPtrAllocator). | Michael J. Spencer | 2013-01-16 | 1 | -16/+13 | |
| | | | | llvm-svn: 172675 | |||||
* | [ELF] clang-format ReaderELF.cpp | Michael J. Spencer | 2013-01-16 | 1 | -91/+78 | |
| | | | | llvm-svn: 172674 | |||||
* | [ELF] Never allocate content to weak symbols as they may be merged away. | Michael J. Spencer | 2013-01-15 | 1 | -0/+18 | |
| | | | | | | | | This is done by creating a new non-weak anonymous symbol and creating an atom with content for that symbol. This is added after the weak symbol so that they have the same address. llvm-svn: 172553 | |||||
* | [ELF] Refactoring and style cleanup. No functionality change. | Michael J. Spencer | 2013-01-15 | 1 | -84/+80 | |
| | | | | llvm-svn: 172552 | |||||
* | [ELF] Update for LLVM Object/ELF changes. | Michael J. Spencer | 2013-01-15 | 4 | -389/+238 | |
| | | | | llvm-svn: 172516 | |||||
* | [ELF] Replace [...] x_{begin,end}() with range<[...]> x(). | Michael J. Spencer | 2013-01-15 | 1 | -170/+112 | |
| | | | | llvm-svn: 172513 | |||||
* | [ELF] Fix use of LLVM RTTI. | Michael J. Spencer | 2013-01-15 | 1 | -51/+29 | |
| | | | | llvm-svn: 172511 | |||||
* | remove const from FindByName | Shankar Easwaran | 2013-01-15 | 1 | -1/+1 | |
| | | | | llvm-svn: 172507 | |||||
* | Add new merge-by-content Merge attribute for use by anonymous | Nick Kledzik | 2013-01-15 | 1 | -0/+1 | |
| | | | | | | constants and string literals which the linker should coalesce. llvm-svn: 172495 | |||||
* | Fix shadowed variable warning | Nick Kledzik | 2013-01-14 | 1 | -3/+3 | |
| | | | | llvm-svn: 172482 | |||||
* | [YAML] Fix undefined behavior. | Michael J. Spencer | 2013-01-13 | 1 | -3/+5 | |
| | | | | llvm-svn: 172338 | |||||
* | Factor File::addAtom out to MutableFile::addAtom. | Michael J. Spencer | 2013-01-12 | 6 | -26/+6 | |
| | | | | | | This removes a bunch of llvm_unreachables and makes a File's mutability part of the type system. llvm-svn: 172297 | |||||
* | [ELF] Fix comment. | Michael J. Spencer | 2013-01-11 | 1 | -1/+1 | |
| | | | | llvm-svn: 172266 | |||||
* | [ELF] Add AtomLayout instead of using pair<Atom, pair<uint64_t, uint64_t>>. | Michael J. Spencer | 2013-01-11 | 1 | -19/+26 | |
| | | | | llvm-svn: 172265 | |||||
* | [ELF] Use the correct cast. | Michael J. Spencer | 2013-01-11 | 1 | -2/+1 | |
| | | | | llvm-svn: 172264 | |||||
* | [ELF] Simplify assert. | Michael J. Spencer | 2013-01-11 | 1 | -4/+2 | |
| | | | | llvm-svn: 172255 | |||||
* | better implementation for findOutputSection | Shankar Easwaran | 2013-01-11 | 1 | -16/+6 | |
| | | | | llvm-svn: 172236 | |||||
* | [ELF] Add support for __init_array_{start,end}. | Michael J. Spencer | 2013-01-10 | 2 | -1/+48 | |
| | | | | | | With this change c++ global constructors and destructors work. llvm-svn: 172133 | |||||
* | [ELF] Fixed -Wunused in -asserts mode. | Michael J. Spencer | 2013-01-10 | 1 | -5/+4 | |
| | | | | llvm-svn: 172131 | |||||
* | style changes | Shankar Easwaran | 2013-01-10 | 1 | -8/+8 | |
| | | | | llvm-svn: 172080 | |||||
* | support for adding linker defined symbols | Shankar Easwaran | 2013-01-10 | 2 | -47/+310 | |
| | | | | llvm-svn: 172040 | |||||
* | [Archive] Use a hash map to lookup symbols in archives. Increases ↵ | Michael J. Spencer | 2013-01-10 | 1 | -5/+34 | |
| | | | | | | performance of linking lua by ~6x. llvm-svn: 172028 | |||||
* | Better tie together ContentType and Permissions. | Nick Kledzik | 2013-01-09 | 1 | -8/+13 | |
| | | | | | | | | | | Since most content types (e.g. typeCode) have a preferred Permission, add a function to do that mapping. Then hook up to YAML Reader and Writer such that the 'permissions:' key does not need to be specified unless overriding what the content type prefers. llvm-svn: 171929 | |||||
* | add extra namespace for gcc-4.7 compatibility | Nick Kledzik | 2013-01-08 | 1 | -41/+50 | |
| | | | | llvm-svn: 171918 | |||||
* | Rename YAML key 'fixups:' to 'references:' | Nick Kledzik | 2013-01-08 | 1 | -1/+1 | |
| | | | | llvm-svn: 171898 | |||||
* | [ELF] Add R_X86_64_64 relocation. | Michael J. Spencer | 2013-01-08 | 1 | -0/+12 | |
| | | | | llvm-svn: 171836 | |||||
* | [ELF] Properly handle constant data. | Michael J. Spencer | 2013-01-07 | 1 | -0/+4 | |
| | | | | | | With this hello world works with dietlibc on x86-64 Linux. llvm-svn: 171711 | |||||
* | [ELF] Emit the file header and program headers at the beginning of the first ↵ | Michael J. Spencer | 2013-01-07 | 1 | -38/+44 | |
| | | | | | | | | | | segment. This is required for the loader to correctly set AT_PHDR. With this lld can correctly link against dietlibc and get to main. llvm-svn: 171709 | |||||
* | [ELF] Change Segment to hold Chunks instead of Sections. No functionality ↵ | Michael J. Spencer | 2013-01-07 | 1 | -4/+7 | |
| | | | | | | change. llvm-svn: 171708 | |||||
* | [ELF] Remove dead variable. | Michael J. Spencer | 2013-01-07 | 1 | -2/+0 | |
| | | | | llvm-svn: 171707 | |||||
* | [ELF] Emit zeroFill as STT_OBJECT in the final executable. ld does this. | Michael J. Spencer | 2013-01-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 171704 | |||||
* | [ELF] Add common x86_64 relocation types. | Michael J. Spencer | 2013-01-07 | 1 | -0/+39 | |
| | | | | llvm-svn: 171703 | |||||
* | [ELF] Give a slightly better message for unknown relocation types. | Michael J. Spencer | 2013-01-07 | 1 | -1/+4 | |
| | | | | llvm-svn: 171692 | |||||
* | [ELF] Update to llvm change. | Michael J. Spencer | 2013-01-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 171652 | |||||
* | [YAML] Fix -Wcovered-switch-default | Michael J. Spencer | 2013-01-06 | 1 | -1/+0 | |
| | | | | llvm-svn: 171645 | |||||
* | Removes files for separate ReaderYAML.cpp and WriterYAML.cpp | Nick Kledzik | 2013-01-05 | 6 | -2287/+1358 | |
| | | | | | | | | and adds a new file ReaderWriterYAML.cpp that uses YAML I/O. Lots of tweaks to test suite for slightly different YAML encoding. llvm-svn: 171592 | |||||
* | Avoid MSVCRT assertion on comparing phdr iterators | Reid Kleckner | 2013-01-05 | 1 | -1/+3 | |
| | | | | llvm-svn: 171591 | |||||
* | [ELF] Add skeleton for X86-64 relocations. | Michael J. Spencer | 2013-01-05 | 4 | -4/+104 | |
| | | | | llvm-svn: 171578 | |||||
* | [ELF][Writer] Don't infinite loop. | Michael J. Spencer | 2013-01-05 | 1 | -1/+1 | |
| | | | | | | | This will be tested by a following committ that runs the linker with no inputs. llvm-svn: 171576 | |||||
* | Style | Michael J. Spencer | 2013-01-05 | 3 | -97/+62 | |
| | | | | llvm-svn: 171575 | |||||
* | [ELF] STT_GNU_IFUNC is a known symbol type, so accept it. We do not yet ↵ | Michael J. Spencer | 2013-01-04 | 1 | -0/+1 | |
| | | | | | | implement its semantics. llvm-svn: 171533 | |||||
* | [ELF] Handle misaligned ELF files properly. | Michael J. Spencer | 2013-01-04 | 3 | -454/+576 | |
| | | | | llvm-svn: 171526 | |||||
* | add Changes to ELF Writer to layout sections/segments in the output executable | Shankar Easwaran | 2012-12-27 | 1 | -1188/+1878 | |
| | | | | llvm-svn: 171135 | |||||
* | changes for the ELF Reader : split up into AtomsELF.h/Adding new permissions ↵ | Shankar Easwaran | 2012-12-27 | 2 | -379/+412 | |
| | | | | | | permRWX llvm-svn: 171127 | |||||
* | changes to fix Hexagon Relocation so that it accounts for the bitmask ↵ | Shankar Easwaran | 2012-12-27 | 1 | -2/+2 | |
| | | | | | | properly as documented in the ABI llvm-svn: 171125 | |||||
* | [ELF][Reader] Ignore SHF_GROUP when switching on flags. | Michael J. Spencer | 2012-12-20 | 1 | -2/+2 | |
| | | | | llvm-svn: 170624 | |||||
* | Style fixes. | Michael J. Spencer | 2012-12-20 | 1 | -138/+79 | |
| | | | | llvm-svn: 170623 | |||||
* | Add library dependencies to the lld cmake build. | Benjamin Kramer | 2012-12-04 | 6 | -0/+27 | |
| | | | | llvm-svn: 169306 |