Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Try to resolve symbol differences early, and if successful create a plain | Rafael Espindola | 2010-12-03 | 1 | -4/+1 | |
| | | | | | | | data fragment. This reduces the time to assemble the test in 8711 from 60s to 54s. llvm-svn: 120767 | |||||
* | Move EmitValueToOffset to the ObjectStreamer. | Rafael Espindola | 2010-12-02 | 1 | -9/+0 | |
| | | | | llvm-svn: 120691 | |||||
* | Add EmitInstToFragment to the generic object streamer. | Rafael Espindola | 2010-12-02 | 1 | -16/+4 | |
| | | | | llvm-svn: 120690 | |||||
* | Move EmitValue to MCObjectStreamer. | Rafael Espindola | 2010-11-28 | 1 | -20/+0 | |
| | | | | llvm-svn: 120269 | |||||
* | Fixed verson of r120245. | Rafael Espindola | 2010-11-28 | 1 | -13/+2 | |
| | | | | | | 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 | 1 | -2/+15 | |
| | | | | llvm-svn: 120246 | |||||
* | Factor some duplicated code into MCObjectStreamer::EmitLabel. | Rafael Espindola | 2010-11-28 | 1 | -15/+2 | |
| | | | | llvm-svn: 120245 | |||||
* | Avoid code duplication in the many unsupported EmitGPRel32Value implementations. | Rafael Espindola | 2010-11-28 | 1 | -3/+0 | |
| | | | | llvm-svn: 120243 | |||||
* | Define generic 1, 2 and 4 byte pc relative relocations. They are common | Rafael Espindola | 2010-11-28 | 1 | -1/+1 | |
| | | | | | | and at least the 4 byte one will be needed to implement the .cfi_* directives. llvm-svn: 120240 | |||||
* | 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 | |||||
* | Added support for the Mach-O .symbol_resolver directive. rdar://8673046 | Kevin Enderby | 2010-11-19 | 1 | -0/+1 | |
| | | | | llvm-svn: 119816 | |||||
* | Change some methods in MCDwarf.cpp to be able to handle an arbitrary | Rafael Espindola | 2010-11-19 | 1 | -1/+4 | |
| | | | | | | | | | | | | 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 | |||||
* | Add .loc methods to the streamer. | Rafael Espindola | 2010-11-16 | 1 | -3/+0 | |
| | | | | | | | Next: Add support for the !HasDotLocAndDotFile case to the MCAsmStreamer and then switch codegen to use it. llvm-svn: 119384 | |||||
* | Change MCExpr::EvaluateAsRelocatableImpl of variables to return the original | Rafael Espindola | 2010-11-15 | 1 | -53/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | |||||
* | Fix another case of a .comm directive without a corresponding .type | Rafael Espindola | 2010-11-14 | 1 | -1/+2 | |
| | | | | | | directive. llvm-svn: 119073 | |||||
* | Fix the type of a symbol created with .comm and no corresponding .type. | Rafael Espindola | 2010-11-14 | 1 | -0/+1 | |
| | | | | llvm-svn: 119060 | |||||
* | Handle a peculiar comdat case: Creating a section with an undefined | Rafael Espindola | 2010-11-14 | 1 | -0/+8 | |
| | | | | | | | signature symbol causes a local symbol to be created unless there is some other use of the symbol. llvm-svn: 119026 | |||||
* | Fix warning. | Rafael Espindola | 2010-11-14 | 1 | -0/+4 | |
| | | | | llvm-svn: 119021 | |||||
* | Mark labels declared in tls sections as STT_TLS. This matches the behavior of | Rafael Espindola | 2010-11-11 | 1 | -32/+37 | |
| | | | | | | gas. llvm-svn: 118818 | |||||
* | Add '.code 32' assembler directive to MC streamers. | Jim Grosbach | 2010-11-05 | 1 | -0/+1 | |
| | | | | llvm-svn: 118309 | |||||
* | MC'ize the '.code 16' and '.thumb_func' ARM directives. | Jim Grosbach | 2010-11-05 | 1 | -1/+7 | |
| | | | | llvm-svn: 118301 | |||||
* | Put class into an anonymous namespace. | Benjamin Kramer | 2010-11-05 | 1 | -0/+2 | |
| | | | | llvm-svn: 118294 | |||||
* | Write the line info to .debug_line. | Rafael Espindola | 2010-11-01 | 1 | -0/+9 | |
| | | | | llvm-svn: 117930 | |||||
* | Move EmitInstruction to MCObjectStreamer so that ELF and MachO can share it. | Rafael Espindola | 2010-11-01 | 1 | -32/+3 | |
| | | | | llvm-svn: 117925 | |||||
* | Implement .weakref. | Rafael Espindola | 2010-11-01 | 1 | -0/+60 | |
| | | | | llvm-svn: 117911 | |||||
* | Make sure weak symbols are listed after the local ones. | Rafael Espindola | 2010-10-06 | 1 | -0/+1 | |
| | | | | llvm-svn: 115795 | |||||
* | On ELF we need to know which symbols are used in relocations to decide if | Rafael Espindola | 2010-10-05 | 1 | -51/+0 | |
| | | | | | | | they should be in the symbol table or not. Instead of "guessing", just compute the symbol table after the relocations are known. llvm-svn: 115619 | |||||
* | Tiny patch for proof-of-concept cleanup of ARMAsmPrinter::EmitStartOfAsmFile() | Jason W Kim | 2010-09-30 | 1 | -0/+1 | |
| | | | | | | | Small test for sanity check of resulting ARM .s file. Tested against -r115129. llvm-svn: 115133 | |||||
* | Move "local commons" to the end of .bss to match the gnu as behavior. | Rafael Espindola | 2010-09-29 | 1 | -9/+29 | |
| | | | | llvm-svn: 115037 | |||||
* | Move ELF to HasReliableSymbolDifference=true. Also take the opportunity to put | Rafael Espindola | 2010-09-25 | 1 | -4/+57 | |
| | | | | | | symbols defined in merge sections in independent atoms. llvm-svn: 114786 | |||||
* | Avoid some Mach-O specific alignment being done on ELF. | Rafael Espindola | 2010-09-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 114594 | |||||
* | Correctly align bss. | Rafael Espindola | 2010-09-22 | 1 | -0/+6 | |
| | | | | llvm-svn: 114556 | |||||
* | Implement support for .local and its "interesting" interactions with .comm. | Rafael Espindola | 2010-09-21 | 1 | -6/+23 | |
| | | | | llvm-svn: 114382 | |||||
* | Add a InitSections method to the streamer interface. | Rafael Espindola | 2010-09-15 | 1 | -0/+33 | |
| | | | | | | | | | | | | | | The ELF implementation now creates text, data and bss to match the gnu as behavior. The text streamer still has the old MachO specific behavior since the testsuite checks that it will error when a directive is given before a setting the current section for example. A nice benefit is that -n is not required anymore when producing ELF files. llvm-svn: 114027 | |||||
* | Factoring and potential bug fix. The elf "flags" cannot be used as masks. | Rafael Espindola | 2010-09-13 | 1 | -14/+37 | |
| | | | | | | | For example, setting STT_OBJECT (1) and STT_FUNC (2), should not produce a STT_SECTION (3). llvm-svn: 113759 | |||||
* | ELF_STB_Local is 0 so setting and checking it must be done specially | Roman Divacky | 2010-09-08 | 1 | -1/+3 | |
| | | | | llvm-svn: 113375 | |||||
* | Allow MCSA_WeakRef in ELF. Patch by Roman Divacky. | Benjamin Kramer | 2010-09-02 | 1 | -1/+1 | |
| | | | | llvm-svn: 112834 | |||||
* | Mark all common symbols external. This is not exactly correct but it lets apps | Benjamin Kramer | 2010-08-30 | 1 | -2/+3 | |
| | | | | | | link for now and can be adjusted later. Patch by Roman Divacky. llvm-svn: 112471 | |||||
* | MCELF: Port EmitInstruction changes from MachO streamer. Patch by Roman Divacky. | Benjamin Kramer | 2010-08-27 | 1 | -41/+46 | |
| | | | | llvm-svn: 112260 | |||||
* | Fix a few warnings in and detabify MCELFStreamer and ELFObjectWriter. | Eli Friedman | 2010-08-16 | 1 | -0/+1 | |
| | | | | llvm-svn: 111175 | |||||
* | Add ELF ObjectWriter and Streamer support. | Matt Fleming | 2010-08-16 | 1 | -0/+401 | |
I forgot to add these files in commit 111172. llvm-svn: 111174 |