summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/Hexagon
Commit message (Collapse)AuthorAgeFilesLines
...
* [ELF] Change MaxAlignment to 2.Shankar Easwaran2013-10-094-4/+3
| | | | llvm-svn: 192310
* [Layout] Dont set ordinals to Files by default.Shankar Easwaran2013-10-092-4/+6
| | | | | | | | | | | | | This change removes code in various places which was setting the File Ordinals. This is because the file ordinals are assigned by the way files are resolved. There was no other way than making the getNextFileAndOrdinal be set const and change the _nextOrdinal to mutable. There are so many places in code, that you would need to cleanup to make LinkingContext non-const! llvm-svn: 192280
* Update error classes from all lowercase to camel case.Rui Ueyama2013-10-091-2/+2
| | | | llvm-svn: 192261
* [lld][InputGraph] Change the Resolver to use inputGraphShankar Easwaran2013-10-074-18/+18
| | | | | | | | | | | | Changes :- a) Functionality in InputGraph to insert Input elements at any position b) Functionality in the Resolver to use nextFile c) Move the functionality of assigning file ordinals to InputGraph d) Changes all inputs to MemoryBuffers e) Remove LinkerInput, InputFiles, ReaderArchive llvm-svn: 192081
* [lld][ELF][Hexagon] Cleanup unused dataShankar Easwaran2013-09-192-3551/+595
| | | | | | | | Cleanup structure members that are not being used. Also clang-format it. llvm-svn: 191038
* [lld][ELF] Assign sectionChoice properly to ELF atomsShankar Easwaran2013-09-171-6/+8
| | | | | | | | | This sets the sectionChoice property for DefinedAtoms. The output section name is derived by the property of the atom. This also decreases native file size. Adds a test. llvm-svn: 190840
* [lld][ELF][Hexagon] add Init/Fini option for hexagonShankar Easwaran2013-09-032-0/+88
| | | | | | This adds init/fini support for Hexagon. llvm-svn: 189872
* [lld][LinkingContext] Atoms created from command line options should be ↵Shankar Easwaran2013-08-311-1/+1
| | | | | | | | | | | | available in YAML This adds an API to the LinkingContext for flavors to add Internal files containing atoms that need to appear in the YAML output as well, when -emit-yaml switch is used. Flavors can add more internal files for other options that are needed. llvm-svn: 189718
* Rename ti -> ctx.Rui Ueyama2013-08-271-3/+3
| | | | | | | This should have been done in r187823 when I renamed LinkingContext from TargetInfo. I missed a few files. llvm-svn: 189298
* [lld][ELF] Cleanup ELF writing, No change in functionalityShankar Easwaran2013-08-261-6/+6
| | | | | | | | | | The cleanup includes :- * Rename ambiguous Header class to ELFHeader * Convert Chunk contentype and kind to be a enumerated class * Remove functions that are not being used, avoids future confusion llvm-svn: 189209
* [lld] handle typeZeroFill atoms in ELF/Native/YAMLShankar Easwaran2013-08-231-1/+3
| | | | | | | | | | | | | BSS atoms dont take any file space in the Input file. They are associated with a contentType(typeZeroFill). Similiar zero fill types also exist which have the same meaning in terms of occupying file space in the Input. These atoms have to be handled seperately when writing to the lld's intermediate file or the lld test infrastructure. Also adds a test. llvm-svn: 189136
* [lld][Hexagon] Enable Hexagon sdata sorting testShankar Easwaran2013-08-221-1/+8
| | | | llvm-svn: 188981
* remove trailing whitespaceShankar Easwaran2013-08-221-1/+1
| | | | llvm-svn: 188965
* Rename TargetInfo -> LinkingContext.Rui Ueyama2013-08-0611-263/+211
| | | | | | | | | 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-163-6/+6
| | | | | | | | | | | | non-ELF writers. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D977 llvm-svn: 184061
* [lld][ELF] Inline header files into the one file using itShankar Easwaran2013-05-212-108/+81
| | | | llvm-svn: 182427
* [lld][ELF][x86_64,hexagon] Changed dynamic atoms to live in anonymous namespaceShankar Easwaran2013-05-201-44/+41
| | | | | | | | so that their names are hidden. This addresses comments raised by Sean/Rafael. llvm-svn: 182230
* [lld][ELF][All Archs] Addend is used by dynamic relocationsShankar Easwaran2013-05-171-2/+14
| | | | | | | | | | | | | | only if they are relative. This removes the FIXME when the relocations are being emitted and checks if the relocation is relative and only then populates the addend information. I couldnt add a testcase for this as llvm-readobj lacks functionality of printing dynamic relocations. When the functionality is added, remove the commented lines from elf/ifunc.test to test functionality. llvm-svn: 182077
* [lld] Fix compiler warning that shift count is too big on P64.Rui Ueyama2013-05-141-1/+1
| | | | llvm-svn: 181852
* [ELF] Initialize readers and writers on creation.Michael J. Spencer2013-05-071-4/+1
| | | | | | | This makes the target handler a constructor argument because the constructor of OutputELFWriter relies on it being initialized. llvm-svn: 181280
* This is my Driver refactoring patch. Nick Kledzik2013-04-044-11/+9
| | | | | | | | | | | | | | | | | | | | | | | The major changes are: 1) LinkerOptions has been merged into TargetInfo 2) LinkerInvocation has been merged into Driver 3) Drivers no longer convert arguments into an intermediate (core) argument list, but instead create a TargetInfo object and call setter methods on it. This is only how in-process linking would work. That is, you can programmatically set up a TargetInfo object which controls the linking. 4) Lots of tweaks to test suite to work with driver changes 5) Add the DarwinDriver 6) I heavily doxygen commented TargetInfo.h Things to do after this patch is committed: a) Consider renaming TargetInfo, given its new roll. b) Consider pulling the list of input files out of TargetInfo. This will enable in-process clients to create one TargetInfo the re-use it with different input file lists. c) Work out a way for Drivers to format the warnings and error done in core linking. llvm-svn: 178776
* [ELF][Hexagon] fix few relocations and add testShankar Easwaran2013-04-012-34/+45
| | | | llvm-svn: 178495
* [ELF][Hexagon] Create .got.plt entries with the appropriate alignmentShankar Easwaran2013-04-012-6/+11
| | | | llvm-svn: 178467
* [ELF] Add dynamic hash table and get simple dynamic libraries working with ↵Shankar Easwaran2013-03-293-11/+41
| | | | | | Hexagon llvm-svn: 178323
* [ELF][Hexagon] remove duplicated codeShankar Easwaran2013-03-261-59/+27
| | | | llvm-svn: 178027
* [ELF][Hexagon] add GOTREL/GOT relocationsShankar Easwaran2013-03-264-4/+56
| | | | llvm-svn: 177970
* [ELF][Hexagon] Add Hexagon dynamic relocationsShankar Easwaran2013-03-203-8/+152
| | | | llvm-svn: 177484
* [lld] remove trailing whitespaceShankar Easwaran2013-03-146-17/+17
| | | | llvm-svn: 177079
* [ELF][X86_64][Hexagon] order plt/got entries properly and fix testShankar Easwaran2013-03-131-7/+18
| | | | llvm-svn: 176970
* [ELF][Hexagon] add initial changes to add GOT/PLTShankar Easwaran2013-03-035-0/+277
| | | | llvm-svn: 176415
* [ELF][Hexagon] add quickdata relocationsShankar Easwaran2013-02-286-15/+54
| | | | llvm-svn: 176298
* [ELF][Hexagon] change Header flagsShankar Easwaran2013-02-281-0/+9
| | | | llvm-svn: 176278
* [lld][ELF][Hexagon] add more relocationsShankar Easwaran2013-02-282-26/+100
| | | | llvm-svn: 176277
* fixing build error properly according to comment from DavidShankar Easwaran2013-02-271-2/+1
| | | | llvm-svn: 176169
* adding a return to fix compilation error from buildbot, build #75Shankar Easwaran2013-02-271-0/+1
| | | | llvm-svn: 176167
* fixing typo in header fileShankar Easwaran2013-02-273-3/+6
| | | | llvm-svn: 176162
* [ELF][Hexagon] add _SDA_BASE_(absolute symbol pointing to start of quickdata)Shankar Easwaran2013-02-244-2/+54
| | | | llvm-svn: 175997
* [ELF][Hexagon]add typeZeroFillFastShankar Easwaran2013-02-241-4/+7
| | | | llvm-svn: 175983
* sort quickdata for the hexagon targetShankar Easwaran2013-02-222-1/+136
| | | | llvm-svn: 175904
* add changes for typeDataFastShankar Easwaran2013-02-221-2/+64
| | | | llvm-svn: 175901
* add changes for layoutafter/layoutbefore/ingroup/layoutpass and test casesShankar Easwaran2013-02-071-1/+5
| | | | llvm-svn: 174658
* add proper copyright headerShankar Easwaran2013-02-012-2/+2
| | | | llvm-svn: 174178
* add hexagon scatter bits and split hexgontargethandler to ↵Shankar Easwaran2013-02-017-104/+3748
| | | | | | hexagonrelocationhander llvm-svn: 174148
* [ELF] Use the target's LayoutHandler.Michael J. Spencer2013-01-302-1/+8
| | | | llvm-svn: 173966
* hexagon targetinfo changes for getting the relocation kind from string and ↵Shankar Easwaran2013-01-302-0/+220
| | | | | | vice versa llvm-svn: 173942
* simplify hexagon relocations handlingShankar Easwaran2013-01-301-4/+5
| | | | llvm-svn: 173938
* Whitespace.Michael J. Spencer2013-01-301-1/+1
| | | | llvm-svn: 173921
* [ELF] Remove ReferenceKinds.Michael J. Spencer2013-01-301-7/+7
| | | | llvm-svn: 173912
* [ELF] Add {Hexagon,PPC,X86}TargetHandler.Michael J. Spencer2013-01-304-7/+168
| | | | llvm-svn: 173909
* [ELF] Chop the ELF prefix off of most things.Michael J. Spencer2013-01-292-7/+8
| | | | llvm-svn: 173838
OpenPOWER on IntegriCloud