summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/ELFObjectWriter.h
Commit message (Collapse)AuthorAgeFilesLines
* Kill the monstrosity that was ELFObjectWriter.h.Rafael Espindola2011-12-221-360/+0
| | | | llvm-svn: 147136
* Misc cleanups.Rafael Espindola2011-12-221-56/+57
| | | | llvm-svn: 147135
* Move the Mips only bits of the ELF writer to lib/Target/Mips.Rafael Espindola2011-12-221-23/+0
| | | | llvm-svn: 147133
* Move the MBlaze ELF writer bits to lib/Target/MBlaze.Rafael Espindola2011-12-221-15/+0
| | | | llvm-svn: 147129
* Move PPC bits to lib/Target/PowerPC.Rafael Espindola2011-12-221-18/+0
| | | | llvm-svn: 147124
* Move the ARM specific parts of the ELF writer to Target/ARM.Rafael Espindola2011-12-221-32/+4
| | | | llvm-svn: 147115
* getEFlags is const.Rafael Espindola2011-12-221-3/+3
| | | | llvm-svn: 147114
* Switch from WriteEFlags to getEFlags in preparation for moving itRafael Espindola2011-12-211-3/+3
| | | | | | to Target/. llvm-svn: 147087
* Move the X86 specific bits of the ELF writer to the Target/X86 directory.Rafael Espindola2011-12-211-17/+1
| | | | | | Other targets will follow shortly. llvm-svn: 147060
* Small refactoring so that RelocNeedsGOT can stay in the target independentRafael Espindola2011-12-211-7/+6
| | | | | | side when the target specific bits are moved to the Target directory. llvm-svn: 147053
* Explicit symbols for gnu mimicing relocations. Patch by Jack CarterBruno Cardoso Lopes2011-12-061-0/+6
| | | | llvm-svn: 145911
* This patch addresses gp relative fixups/relocations for jump tables.Akira Hatanaka2011-11-231-0/+2
| | | | llvm-svn: 145112
* Tidy up. 80 columns.Jim Grosbach2011-11-151-15/+21
| | | | llvm-svn: 144649
* Add definition of MipsELFObjectWriter.Akira Hatanaka2011-09-301-0/+15
| | | | | | Patch by Reed Kotler at Mips Technologies. llvm-svn: 140891
* Introduce adjustFixupOffset that adjusts the fixup offset of a relocation.Roman Divacky2011-08-041-0/+2
| | | | | | | | This is meant to be overriden by backends. Implement an override on PowerPC which adjusts the offset by 2 for ha16/lo16 relocation kinds. This removes a commented out hack and enables hello world to be compiled on PowerPC. llvm-svn: 136905
* Sketch out PowerPC ELF writer. This is enough to get clang -integrated-asRoman Divacky2011-08-021-0/+15
| | | | | | to compile a working hello world on FreeBSD/PPC32. llvm-svn: 136689
* Address the last bit of relocation flag related divergence betweeenJason W Kim2011-05-111-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | LLVM and binutils. With this patch, there are no functional differences between the .o produced directly from LLVM versus the .s to .o via GNU as, for relocation tags at least, for both PIC and non-PIC modes. Because some non-PIC reloc tags are used (legally) on PIC, so IsPCRel flag is necessary but not sufficient to determine whether the overall codegen mode is PIC or not. Why is this necessary? There is an incompatibility of how relocs are emitted in the .rodata section. Binutils PIC likes to emit certain relocs as section relative offsets. Non-PIC does not do this. So I added a hidden switch on the ELFObjectwriter "-arm-elf-force-pic" which forces the objectwriter to pretend that all relocs are for PIC mode. Todo: Activate ForceARMElfPIC to true if -relocation-model=pic is selected on llc. Todo: There are probably more issues for PIC mode on ARM/MC/ELF... Todo: Existing tests in MC/ARM/elf-reloc*.ll need to be converted over to .s tests as well as expanded to cover the gamut. llvm-svn: 131205
* Write the section table and the section data in the same order thatRafael Espindola2011-03-201-14/+29
| | | | | | | gun as does. This makes it a lot easier to compare the output of both as the addresses are now a lot closer. llvm-svn: 127972
* Split MCEELFStreamer and ELFObjectWriter into .h and .cpp files, so that ↵Jan Sjödin2011-03-031-0/+391
other components can use them. llvm-svn: 126942
OpenPOWER on IntegriCloud