Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. ↵ | Sylvestre Ledru | 2012-09-27 | 1 | -1/+1 |
| | | | | | | See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164767 llvm-svn: 164768 | ||||
* | Fix a typo 'iff' => 'if' | Sylvestre Ledru | 2012-09-27 | 1 | -1/+1 |
| | | | | llvm-svn: 164767 | ||||
* | Implement relocation-overflow behavior for PE/COFF. | Michael J. Spencer | 2012-03-15 | 1 | -2/+29 |
| | | | | | | | | | This needs a test, but it will take some time to figure out the best way to get an input that will produce > 2^16 relocs. Patch by Graydon Hoare! llvm-svn: 152787 | ||||
* | Move x86 specific bits of the COFF writer to lib/Target/X86. | Rafael Espindola | 2011-12-24 | 1 | -39/+17 |
| | | | | llvm-svn: 147231 | ||||
* | Move all the dependencies on X86FixupKinds.h to a single method in preparation | Rafael Espindola | 2011-12-22 | 1 | -27/+34 |
| | | | | | | to moving it to lib/Target/X86. llvm-svn: 147190 | ||||
* | Add back the MC bits of 126425. Original patch by Nathan Jeffords. I added the | Rafael Espindola | 2011-12-17 | 1 | -0/+4 |
| | | | | | | asm parsing and testcase. llvm-svn: 146801 | ||||
* | Switch MCAssembler to method names starting w/ lower-case. | Jim Grosbach | 2011-12-06 | 1 | -1/+1 |
| | | | | | | per http://llvm.org/docs/CodingStandards.html#ll_naming llvm-svn: 145873 | ||||
* | MC/COFF: Correctly emit the size of an empty string table. | Michael J. Spencer | 2011-11-08 | 1 | -0/+1 |
| | | | | llvm-svn: 144111 | ||||
* | Refactor X86 target to separate MC code from Target code. | Evan Cheng | 2011-07-25 | 1 | -1/+1 |
| | | | | llvm-svn: 135930 | ||||
* | Fix relative relocations. This is sufficient for running the rust testsuite with | Rafael Espindola | 2011-04-21 | 1 | -1/+6 |
| | | | | | | MC :-) llvm-svn: 129923 | ||||
* | Behave like gnu as when a relocation crosses sections. | Rafael Espindola | 2011-04-20 | 1 | -8/+13 |
| | | | | llvm-svn: 129850 | ||||
* | Roll out r126425 and r126450 to see if it fixes the failures on the buildbots. | Cameron Zwarich | 2011-02-25 | 1 | -4/+0 |
| | | | | llvm-svn: 126488 | ||||
* | Enable DebugInfo support for COFF object files. | Devang Patel | 2011-02-24 | 1 | -0/+4 |
| | | | | | | Patch by Nathan Jeffords! llvm-svn: 126425 | ||||
* | Gas is very inconsistent about when a relaxation/relocation is needed. Do | Rafael Espindola | 2011-02-16 | 1 | -20/+0 |
| | | | | | | the right thing and stop trying to copy it. Fixes PR8944. llvm-svn: 125648 | ||||
* | Merge IsFixupFullyResolved and IsSymbolRefDifferenceFullyResolved. We now | Rafael Espindola | 2010-12-24 | 1 | -32/+17 |
| | | | | | | have a single point where targets test if a relocation is needed. llvm-svn: 122549 | ||||
* | Merge isAbsolute into IsSymbolRefDifferenceFullyResolved. | Rafael Espindola | 2010-12-18 | 1 | -14/+0 |
| | | | | llvm-svn: 122148 | ||||
* | Remove the MCObjectFormat class. | Rafael Espindola | 2010-12-18 | 1 | -0/+6 |
| | | | | llvm-svn: 122147 | ||||
* | MC/ObjectWriter: Add a new IsSymbolRefDifferenceFullyResolved target format ↵ | Daniel Dunbar | 2010-12-17 | 1 | -0/+8 |
| | | | | | | | | specific hook. - Currently just has stub implementations for Mach-O, ELF, and COFF. llvm-svn: 122037 | ||||
* | MC/Assembler: Strip out object writer arguments, now that it is always available | Daniel Dunbar | 2010-12-17 | 1 | -1/+1 |
| | | | | | | -- and remove FIXME asking for the same! llvm-svn: 122032 | ||||
* | Sorry for such a large commit. The summary is that only MachO cares about the | Rafael Espindola | 2010-12-07 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | actuall addresses in a .o file, so it is better to let the MachO writer compute it. This is good for two reasons. First, areas that shouldn't care about addresses now don't have access to it. Second, the layout of each section is independent. I should use this in a subsequent commit to speed it up. Most of the patch is just removing the section address computation. The two interesting parts are the change on how we handle padding in the end of sections and how MachO can get the address of a-b when a and b are in different sections. Since now the expression evaluation normally doesn't know the section address, it will think that a-b needs relocation and let the MachO writer know. Once it has computed the section addresses, it calls back the expression evaluation with the section addresses to resolve these expressions. The remaining problem is the handling of padding. Currently it will create a special alignment fragment at the end. Since that fragment doesn't update the alignment of the section, it needs the real address to be computed. Since now the layout will not compute a-b with a and b in different sections, the only effect that the special alignment fragment has is update the address size of the section. This can also be done by the MachO writer. llvm-svn: 121076 | ||||
* | Use getSymbolOffset on the COFF writer. | Rafael Espindola | 2010-12-06 | 1 | -1/+1 |
| | | | | llvm-svn: 120979 | ||||
* | Merge System into Support. | Michael J. Spencer | 2010-11-29 | 1 | -1/+1 |
| | | | | llvm-svn: 120298 | ||||
* | 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 Warnings. | Michael J. Spencer | 2010-10-21 | 1 | -1/+1 |
| | | | | llvm-svn: 117062 | ||||
* | MC-COFF: Add support for default-null weak externals. | Michael J. Spencer | 2010-10-16 | 1 | -45/+57 |
| | | | | llvm-svn: 116666 | ||||
* | MC-COFF: Fix .bss section size. Fixes PR8335. Patch by NAKAMUTA Takumi! | Michael J. Spencer | 2010-10-09 | 1 | -1/+1 |
| | | | | llvm-svn: 116155 | ||||
* | MC-COFF: Assert on non-coff sections. | Michael J. Spencer | 2010-10-09 | 1 | -0/+2 |
| | | | | llvm-svn: 116148 | ||||
* | MC-COFF: Handle relaxation in COFF better. Fixes PR8321. | Michael J. Spencer | 2010-10-07 | 1 | -1/+29 |
| | | | | llvm-svn: 116013 | ||||
* | Fix Punctuation. | Michael J. Spencer | 2010-10-05 | 1 | -1/+1 |
| | | | | llvm-svn: 115657 | ||||
* | MC-COFF: Fix (PR8278) temporary symbol relocations. | Michael J. Spencer | 2010-10-05 | 1 | -1/+2 |
| | | | | llvm-svn: 115656 | ||||
* | On ELF we need to know which symbols are used in relocations to decide if | Rafael Espindola | 2010-10-05 | 1 | -2/+2 |
| | | | | | | | 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 | ||||
* | Correctly produce R_X86_64_32 or R_X86_64_32S. | Rafael Espindola | 2010-09-30 | 1 | -0/+1 |
| | | | | | | | | | | | | | With this patch in movq $foo, foo(%rip) foo: .long foo We produce a R_X86_64_32S for the first relocation and R_X86_64_32 for the second one. llvm-svn: 115134 | ||||
* | Make it possible for the MCObjectWriter to decide if a given fixup is fully | Rafael Espindola | 2010-09-30 | 1 | -0/+12 |
| | | | | | | | | | | | resolved or not. Different object files have different restrictions and different native assemblers have different idiosyncrasies we want to emulate for now. Move the existing MachO logic to the new place and implement an ELF one that gets fixups to globals right. llvm-svn: 115131 | ||||
* | MC-COFF: Fix symbol storage class for globals | Michael J. Spencer | 2010-09-29 | 1 | -1/+1 |
| | | | | llvm-svn: 115020 | ||||
* | MC-COFF: Fix signed/unsigned comparison. | Michael J. Spencer | 2010-09-27 | 1 | -2/+2 |
| | | | | llvm-svn: 114888 | ||||
* | MC-COFF: Drop empty sections, and label symbols. Convert relocations | Michael J. Spencer | 2010-09-27 | 1 | -82/+163 |
| | | | | | | | | targeted at symbols into relocations relative to the containing section. Patch by Nathan Jeffords! llvm-svn: 114823 | ||||
* | Fix COFF x86-64 relocations. PR7960. | Michael J. Spencer | 2010-08-24 | 1 | -42/+45 |
| | | | | | | Multiple symbol reloc handling part of the patch by Cameron Esfahani. llvm-svn: 111963 | ||||
* | MC: Add partial x86-64 support to COFF. | Michael J. Spencer | 2010-08-21 | 1 | -17/+43 |
| | | | | llvm-svn: 111728 | ||||
* | MC: Fix symbol fragment offsets in COFF. | Michael J. Spencer | 2010-08-03 | 1 | -1/+2 |
| | | | | | | Patch by Cameron Esfahani! llvm-svn: 110104 | ||||
* | Revert "MC: Fix symbol fragment offsets in COFF." | Michael J. Spencer | 2010-08-03 | 1 | -2/+1 |
| | | | | | | | | This reverts commit r110100 Wrong path caps. llvm-svn: 110103 | ||||
* | MC: Add time travel support to COFF. | Michael J. Spencer | 2010-08-03 | 1 | -0/+4 |
| | | | | llvm-svn: 110101 | ||||
* | MC: Fix symbol fragment offsets in COFF. | Michael J. Spencer | 2010-08-03 | 1 | -1/+2 |
| | | | | | | Patch by Cameron Esfahani! llvm-svn: 110100 | ||||
* | Silence some -Asserts uninitialized variable warnings. | Daniel Dunbar | 2010-07-31 | 1 | -0/+1 |
| | | | | llvm-svn: 109956 | ||||
* | COFFObjectWriter: Don't leak COFFSymbols and COFFSections. | Benjamin Kramer | 2010-07-29 | 1 | -0/+8 |
| | | | | llvm-svn: 109745 | ||||
* | Fix format-specifier warning | Douglas Gregor | 2010-07-26 | 1 | -1/+1 |
| | | | | llvm-svn: 109391 | ||||
* | MC: Fix whitespace error from last commit. | Michael J. Spencer | 2010-07-26 | 1 | -1/+1 |
| | | | | | | A Visual C++ extension that removes trailing new lines? Seriously? llvm-svn: 109390 | ||||
* | MC: Add WinCOFFObjectWriter implementation. | Michael J. Spencer | 2010-07-26 | 1 | -14/+674 |
| | | | | | | Origonal Windows COFF implementation by Nathan Jedffords. llvm-svn: 109389 | ||||
* | introduce WinCOFFObjectWriter, patch by Michael Spencer! | Chris Lattner | 2010-07-11 | 1 | -0/+71 |
llvm-svn: 108103 |