Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ARM/MC/ELF relocation "hello world" for movw/movt. | Jason W Kim | 2010-12-01 | 1 | -1/+97 |
| | | | | | | | | | | | Lifted adjustFixupValue() from Darwin for sharing w ELF. Test added TODO: refactor ELFObjectWriter::RecordRelocation more. Possibly share more code with Darwin? Lots more relocations... llvm-svn: 120534 | ||||
* | Merge System into Support. | Michael J. Spencer | 2010-11-29 | 6 | -6/+6 |
| | | | | llvm-svn: 120298 | ||||
* | Make EmitIntValue non virtual. | Rafael Espindola | 2010-11-28 | 2 | -32/+9 |
| | | | | llvm-svn: 120271 | ||||
* | Forgot the MCPureStreamer::EmitValue in the previous commit. | Rafael Espindola | 2010-11-28 | 1 | -21/+0 |
| | | | | llvm-svn: 120270 | ||||
* | Move EmitValue to MCObjectStreamer. | Rafael Espindola | 2010-11-28 | 4 | -65/+19 |
| | | | | llvm-svn: 120269 | ||||
* | Fixed verson of r120245. | Rafael Espindola | 2010-11-28 | 4 | -47/+26 |
| | | | | | | Factor some duplicated code into MCObjectStreamer::EmitLabel. llvm-svn: 120248 | ||||
* | Revert previous patch while I debug the darwin bootstrap failure. | Rafael Espindola | 2010-11-28 | 4 | -23/+54 |
| | | | | llvm-svn: 120246 | ||||
* | Factor some duplicated code into MCObjectStreamer::EmitLabel. | Rafael Espindola | 2010-11-28 | 4 | -54/+23 |
| | | | | llvm-svn: 120245 | ||||
* | Avoid code duplication in the many unsupported EmitGPRel32Value implementations. | Rafael Espindola | 2010-11-28 | 5 | -14/+4 |
| | | | | llvm-svn: 120243 | ||||
* | Define generic 1, 2 and 4 byte pc relative relocations. They are common | Rafael Espindola | 2010-11-28 | 8 | -24/+31 |
| | | | | | | and at least the 4 byte one will be needed to implement the .cfi_* directives. llvm-svn: 120240 | ||||
* | macho-dump: Add support for dumping relocation entries. | Daniel Dunbar | 2010-11-27 | 1 | -14/+9 |
| | | | | llvm-svn: 120216 | ||||
* | Fix a comment. | Daniel Dunbar | 2010-11-27 | 1 | -2/+1 |
| | | | | llvm-svn: 120199 | ||||
* | Reduce nesting. | Daniel Dunbar | 2010-11-27 | 1 | -20/+26 |
| | | | | llvm-svn: 120189 | ||||
* | MC/Mach-O: Migrate more constants into MachOFormat.h. | Daniel Dunbar | 2010-11-27 | 1 | -104/+37 |
| | | | | llvm-svn: 120188 | ||||
* | MC/Mach-O: Introduce Object/MachOFormat for describing purely platform / machine | Daniel Dunbar | 2010-11-27 | 1 | -38/+24 |
| | | | | | | | independent information on the Mach object format, and move some stuff from MachObjectWriter.cpp there. llvm-svn: 120186 | ||||
* | Remove the unused TheTarget member. | Rafael Espindola | 2010-11-26 | 1 | -3/+2 |
| | | | | llvm-svn: 120168 | ||||
* | Fix Whitespace. | Michael J. Spencer | 2010-11-26 | 1 | -14/+14 |
| | | | | llvm-svn: 120166 | ||||
* | Factor some code to parseSectionFlags and fix the default type of a section. | Rafael Espindola | 2010-11-25 | 1 | -49/+58 |
| | | | | llvm-svn: 120145 | ||||
* | Behave a bit more like gnu as and use the symbol (instead of the section) | Rafael Espindola | 2010-11-24 | 2 | -6/+18 |
| | | | | | | for any relocation to a symbol defined in a tls section. llvm-svn: 120121 | ||||
* | Relocate with the symbol if the relocation is of kind NTPOFF. | Rafael Espindola | 2010-11-24 | 1 | -1/+2 |
| | | | | | | Patch by David Meyer, I added the test. llvm-svn: 120104 | ||||
* | Fix and add tests for all cases in x86 and x86_64 where gnu as implicitly | Rafael Espindola | 2010-11-24 | 1 | -5/+13 |
| | | | | | | sets the type of a symbol to STT_TLS. llvm-svn: 120100 | ||||
* | If a symbol is used as tls, mark it as tls even if not declare as so. Probably | Rafael Espindola | 2010-11-24 | 1 | -0/+40 |
| | | | | | | fixes PR8659. llvm-svn: 120076 | ||||
* | Invalidate the layout on any relaxation, not just Instructions. Bug found by ↵ | Rafael Espindola | 2010-11-23 | 1 | -9/+11 |
| | | | | | | | | David Meyer. While here, remove unused argument and rename UpdateForSlide to Invalidate. llvm-svn: 120009 | ||||
* | Reuse data fragments while lowering. Patch by David Meyer. | Rafael Espindola | 2010-11-23 | 1 | -26/+77 |
| | | | | llvm-svn: 119999 | ||||
* | Fixed some style issues (no _, no spc after !) | Jason W Kim | 2010-11-22 | 1 | -6/+6 |
| | | | | llvm-svn: 119986 | ||||
* | Make the <ARCH>ELFObjectWriter statics private | Jason W Kim | 2010-11-22 | 1 | -0/+3 |
| | | | | llvm-svn: 119982 | ||||
* | Fix misplaced statics. | Jason W Kim | 2010-11-22 | 1 | -6/+5 |
| | | | | llvm-svn: 119981 | ||||
* | Kill trailing whitespace | Jason W Kim | 2010-11-22 | 1 | -3/+3 |
| | | | | llvm-svn: 119979 | ||||
* | Refactor the ELFRelocationEntry (pull up) and move the arch-specific statics ↵ | Jason W Kim | 2010-11-22 | 1 | -46/+54 |
| | | | | | | | | | | to inside the class where it belongs. Next step is to rationally break apart the RecordRelocation() Probably the step will be to have 1 member function for ech slot of the ELFRelocationEntry() llvm-svn: 119978 | ||||
* | Add basic CFI methods to the streamer interface. | Rafael Espindola | 2010-11-22 | 3 | -7/+125 |
| | | | | llvm-svn: 119972 | ||||
* | Remove some #includes. | Rafael Espindola | 2010-11-22 | 1 | -0/+1 |
| | | | | llvm-svn: 119967 | ||||
* | Implement ELF object file writing support for the MBlaze backend. Its not ↵ | Wesley Peck | 2010-11-21 | 1 | -2/+140 |
| | | | | | | perfect yet, but it works for many tests. llvm-svn: 119952 | ||||
* | Handle PCRel relocations with absolute values. Fixes PR8656. | Rafael Espindola | 2010-11-21 | 1 | -9/+23 |
| | | | | llvm-svn: 119917 | ||||
* | Added support for the Mach-O .symbol_resolver directive. rdar://8673046 | Kevin Enderby | 2010-11-19 | 6 | -0/+10 |
| | | | | llvm-svn: 119816 | ||||
* | Add a MCLineSectionOrder vector so that we produce the line tables in a | Rafael Espindola | 2010-11-19 | 1 | -10/+15 |
| | | | | | | deterministic order. llvm-svn: 119795 | ||||
* | Add an assert. | Rafael Espindola | 2010-11-19 | 1 | -1/+3 |
| | | | | llvm-svn: 119788 | ||||
* | Fix llvm-gcc boostrap on OS X by avoiding printing sleb and uleb when | Rafael Espindola | 2010-11-19 | 1 | -0/+16 |
| | | | | | | possible. llvm-svn: 119785 | ||||
* | Change some methods in MCDwarf.cpp to be able to handle an arbitrary | Rafael Espindola | 2010-11-19 | 4 | -34/+83 |
| | | | | | | | | | | | | MCStreamer instead of just MCObjectStreamer. Address changes cannot be as efficient as we have to use DW_LNE_set_addres, but at least most of the logic is shared. This will be used so that, with CodeGen still using EmitDwarfLocDirective, llvm-gcc is able to produce debug_line sections without needing an assembler that supports .loc. llvm-svn: 119777 | ||||
* | Change CodeGen to use .loc directives. This produces a lot more readable output | Rafael Espindola | 2010-11-18 | 1 | -1/+0 |
| | | | | | | | | and testing is easier. A good example is the unknown-location.ll test that now can just look for ".loc 1 0 0". We also don't use a DW_LNE_set_address for every address change anymore. llvm-svn: 119613 | ||||
* | make isVirtualSection a virtual method on MCSection. Chris' suggestion. | Rafael Espindola | 2010-11-17 | 5 | -7/+21 |
| | | | | llvm-svn: 119547 | ||||
* | Fix typo. | Jim Grosbach | 2010-11-17 | 1 | -1/+1 |
| | | | | llvm-svn: 119542 | ||||
* | Add support for .int. | Rafael Espindola | 2010-11-17 | 1 | -0/+2 |
| | | | | llvm-svn: 119512 | ||||
* | Add support for .2byte, .4byte and .8byte. | Rafael Espindola | 2010-11-17 | 1 | -0/+6 |
| | | | | | | Fixes PR8631. llvm-svn: 119511 | ||||
* | MC-JIT: Stub out "pure" streamer. | Daniel Dunbar | 2010-11-17 | 2 | -0/+260 |
| | | | | | | - No immediate use, but maybe someone feels like hacking on it. llvm-svn: 119510 | ||||
* | Add .loc methods to the streamer. | Rafael Espindola | 2010-11-16 | 9 | -24/+73 |
| | | | | | | | Next: Add support for the !HasDotLocAndDotFile case to the MCAsmStreamer and then switch codegen to use it. llvm-svn: 119384 | ||||
* | Parse and ignore some .cfi_* directives. | Rafael Espindola | 2010-11-16 | 1 | -0/+95 |
| | | | | llvm-svn: 119362 | ||||
* | A bit more of gnu as compatibility when handling relocations with aliases. | Rafael Espindola | 2010-11-16 | 1 | -2/+5 |
| | | | | llvm-svn: 119328 | ||||
* | Fix compiler warnigns. | Benjamin Kramer | 2010-11-15 | 1 | -2/+2 |
| | | | | llvm-svn: 119175 | ||||
* | Change MCExpr::EvaluateAsRelocatableImpl of variables to return the original | Rafael Espindola | 2010-11-15 | 5 | -116/+60 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | variable if recursing fails to simplify it. Factor AliasedSymbol to be a method of MCSymbol. Update MCAssembler::EvaluateFixup to match the change in EvaluateAsRelocatableImpl. Remove the WeakRefExpr hack, as the object writer now sees the weakref with no extra effort needed. Nothing else is using MCTargetExpr, but keep it for now. Now that the ELF writer sees relocations with aliases, handle .weak foo2 foo2: .weak bar2 .set bar2,foo2 .quad bar2 the same way gas does and produce a relocation with bar2. llvm-svn: 119152 | ||||
* | Dovetail with Dan Dunbar's rework of ELFObjectWriter. | Jason W Kim | 2010-11-15 | 1 | -223/+311 |
| | | | | | | | Added 2 new subclasses - X86ELFObjectWriter and ARMELFObectWriter. ARM and X86 require different code for RecordRelocation(), possibly others. llvm-svn: 119149 |