summaryrefslogtreecommitdiffstats
path: root/lld/lib
Commit message (Collapse)AuthorAgeFilesLines
* [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-103-48/+316
| | | | 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-093-8/+92
| | | | | | | | | | 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
* fix typoNick Kledzik2013-01-081-1/+1
| | | | llvm-svn: 171916
* [lld] Add support for -mllvm.Michael J. Spencer2013-01-084-0/+42
| | | | | | | There is no way to test this at the moment because the options are not processed until the link starts, and we can't pass an empty file. llvm-svn: 171910
* [Driver] Fix indentation.Michael J. Spencer2013-01-081-45/+45
| | | | llvm-svn: 171909
* 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
* [lld] Add and ignore some flags for ld compat.Michael J. Spencer2013-01-081-0/+6
| | | | llvm-svn: 171835
* [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
* [lld] Add -emit-yaml option. This outputs yaml instead of a binary.Michael J. Spencer2013-01-074-4/+42
| | | | llvm-svn: 171710
* [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
* [Driver] x86-64 should use ELF 64.Michael J. Spencer2013-01-071-1/+1
| | | | llvm-svn: 171693
* [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-057-2287/+1364
| | | | | | | | 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
* [Driver] Add -flavor core support. This will be tested by other tests using ↵Michael J. Spencer2013-01-052-0/+18
| | | | | | -flavor core. llvm-svn: 171577
* [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
* [Driver] Add x86-64 target.Michael J. Spencer2013-01-041-0/+56
| | | | llvm-svn: 171557
* [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
* Style fixes.Michael J. Spencer2013-01-041-9/+0
| | | | llvm-svn: 171531
* [Passes][GOT] Fix style.Michael J. Spencer2013-01-041-48/+40
| | | | llvm-svn: 171530
* [Driver] Error on undefined.Michael J. Spencer2013-01-041-1/+6
| | | | llvm-svn: 171529
* Slightly better diagnostics on duplicate symbols.Michael J. Spencer2013-01-041-0/+9
| | | | llvm-svn: 171528
* [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
* Fix build issue when building lld against libstdc++ 4.7Andy Gibbs2012-12-221-1/+1
| | | | llvm-svn: 170983
* [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
* [Driver] Properly handle -entry for X86 Linux.Michael J. Spencer2012-12-092-4/+5
| | | | llvm-svn: 169718
* [Driver] Add -### support for printing out the core command line.Michael J. Spencer2012-12-093-0/+10
| | | | llvm-svn: 169717
* Remove left over debugging output.Michael J. Spencer2012-12-091-2/+0
| | | | llvm-svn: 169716
* [Driver] Make the X86Linux target use X86 (not x64) and properly initalize ↵Michael J. Spencer2012-12-091-3/+12
| | | | | | WriterOptions. llvm-svn: 169715
* Add the core architecture for the lld driver.Michael J. Spencer2012-12-089-0/+403
| | | | | | | | | | | | | This includes selecting which driver to emulate, option parsing, invocation building, and running the link. This currently only supports a very basic subset of ld for x86_64-linux. lld -flavor ld obj.o -o obj or symlink lld as (ld , link, ld64, core) to get the desired behavior without -flavor. llvm-svn: 169659
* Add library dependencies to the lld cmake build.Benjamin Kramer2012-12-047-0/+29
| | | | llvm-svn: 169306
* Populate entry point into ELF executable.Hemant Kulkarni2012-11-213-21/+49
| | | | llvm-svn: 168461
OpenPOWER on IntegriCloud