summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter
Commit message (Collapse)AuthorAgeFilesLines
...
* [Core] Use LLVM's ErrorOr<T>.Michael J. Spencer2013-01-201-1/+1
| | | | llvm-svn: 172993
* Replace the 'final' keyword with 'LLVM_FINAL' as GCC 4.6 doesn't supportChandler Carruth2013-01-191-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. Spencer2013-01-161-16/+13
| | | | llvm-svn: 172675
* [ELF] clang-format ReaderELF.cppMichael J. Spencer2013-01-161-91/+78
| | | | llvm-svn: 172674
* [ELF] Never allocate content to weak symbols as they may be merged away.Michael J. Spencer2013-01-151-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. Spencer2013-01-151-84/+80
| | | | llvm-svn: 172552
* [ELF] Update for LLVM Object/ELF changes.Michael J. Spencer2013-01-154-389/+238
| | | | llvm-svn: 172516
* [ELF] Replace [...] x_{begin,end}() with range<[...]> x().Michael J. Spencer2013-01-151-170/+112
| | | | llvm-svn: 172513
* [ELF] Fix use of LLVM RTTI.Michael J. Spencer2013-01-151-51/+29
| | | | llvm-svn: 172511
* remove const from FindByNameShankar Easwaran2013-01-151-1/+1
| | | | llvm-svn: 172507
* Add new merge-by-content Merge attribute for use by anonymousNick Kledzik2013-01-151-0/+1
| | | | | | constants and string literals which the linker should coalesce. llvm-svn: 172495
* Fix shadowed variable warningNick Kledzik2013-01-141-3/+3
| | | | llvm-svn: 172482
* [YAML] Fix undefined behavior.Michael J. Spencer2013-01-131-3/+5
| | | | llvm-svn: 172338
* Factor File::addAtom out to MutableFile::addAtom.Michael J. Spencer2013-01-126-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. Spencer2013-01-111-1/+1
| | | | llvm-svn: 172266
* [ELF] Add AtomLayout instead of using pair<Atom, pair<uint64_t, uint64_t>>.Michael J. Spencer2013-01-111-19/+26
| | | | llvm-svn: 172265
* [ELF] Use the correct cast.Michael J. Spencer2013-01-111-2/+1
| | | | llvm-svn: 172264
* [ELF] Simplify assert.Michael J. Spencer2013-01-111-4/+2
| | | | llvm-svn: 172255
* better implementation for findOutputSectionShankar Easwaran2013-01-111-16/+6
| | | | llvm-svn: 172236
* [ELF] Add support for __init_array_{start,end}.Michael J. Spencer2013-01-102-1/+48
| | | | | | With this change c++ global constructors and destructors work. llvm-svn: 172133
* [ELF] Fixed -Wunused in -asserts mode.Michael J. Spencer2013-01-101-5/+4
| | | | llvm-svn: 172131
* style changesShankar Easwaran2013-01-101-8/+8
| | | | llvm-svn: 172080
* support for adding linker defined symbolsShankar Easwaran2013-01-102-47/+310
| | | | llvm-svn: 172040
* [Archive] Use a hash map to lookup symbols in archives. Increases ↵Michael J. Spencer2013-01-101-5/+34
| | | | | | performance of linking lua by ~6x. llvm-svn: 172028
* Better tie together ContentType and Permissions. Nick Kledzik2013-01-091-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 compatibilityNick Kledzik2013-01-081-41/+50
| | | | llvm-svn: 171918
* Rename YAML key 'fixups:' to 'references:'Nick Kledzik2013-01-081-1/+1
| | | | llvm-svn: 171898
* [ELF] Add R_X86_64_64 relocation.Michael J. Spencer2013-01-081-0/+12
| | | | llvm-svn: 171836
* [ELF] Properly handle constant data.Michael J. Spencer2013-01-071-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. Spencer2013-01-071-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. Spencer2013-01-071-4/+7
| | | | | | change. llvm-svn: 171708
* [ELF] Remove dead variable.Michael J. Spencer2013-01-071-2/+0
| | | | llvm-svn: 171707
* [ELF] Emit zeroFill as STT_OBJECT in the final executable. ld does this.Michael J. Spencer2013-01-071-1/+1
| | | | llvm-svn: 171704
* [ELF] Add common x86_64 relocation types.Michael J. Spencer2013-01-071-0/+39
| | | | llvm-svn: 171703
* [ELF] Give a slightly better message for unknown relocation types.Michael J. Spencer2013-01-071-1/+4
| | | | llvm-svn: 171692
* [ELF] Update to llvm change.Michael J. Spencer2013-01-061-1/+1
| | | | llvm-svn: 171652
* [YAML] Fix -Wcovered-switch-defaultMichael J. Spencer2013-01-061-1/+0
| | | | llvm-svn: 171645
* Removes files for separate ReaderYAML.cpp and WriterYAML.cpp Nick Kledzik2013-01-056-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 iteratorsReid Kleckner2013-01-051-1/+3
| | | | llvm-svn: 171591
* [ELF] Add skeleton for X86-64 relocations.Michael J. Spencer2013-01-054-4/+104
| | | | llvm-svn: 171578
* [ELF][Writer] Don't infinite loop.Michael J. Spencer2013-01-051-1/+1
| | | | | | | This will be tested by a following committ that runs the linker with no inputs. llvm-svn: 171576
* StyleMichael J. Spencer2013-01-053-97/+62
| | | | llvm-svn: 171575
* [ELF] STT_GNU_IFUNC is a known symbol type, so accept it. We do not yet ↵Michael J. Spencer2013-01-041-0/+1
| | | | | | implement its semantics. llvm-svn: 171533
* [ELF] Handle misaligned ELF files properly.Michael J. Spencer2013-01-043-454/+576
| | | | llvm-svn: 171526
* add Changes to ELF Writer to layout sections/segments in the output executableShankar Easwaran2012-12-271-1188/+1878
| | | | llvm-svn: 171135
* changes for the ELF Reader : split up into AtomsELF.h/Adding new permissions ↵Shankar Easwaran2012-12-272-379/+412
| | | | | | permRWX llvm-svn: 171127
* changes to fix Hexagon Relocation so that it accounts for the bitmask ↵Shankar Easwaran2012-12-271-2/+2
| | | | | | properly as documented in the ABI llvm-svn: 171125
* [ELF][Reader] Ignore SHF_GROUP when switching on flags.Michael J. Spencer2012-12-201-2/+2
| | | | llvm-svn: 170624
* Style fixes.Michael J. Spencer2012-12-201-138/+79
| | | | llvm-svn: 170623
* Add library dependencies to the lld cmake build.Benjamin Kramer2012-12-046-0/+27
| | | | llvm-svn: 169306
OpenPOWER on IntegriCloud