aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCAsmBackend.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-08-22[mips][ias] Support .dtprel[d]word and .tprel[d]word directivesSimon Atanasyan1-0/+4
Assembler directives .dtprelword, .dtpreldword, .tprelword, and .tpreldword generates relocations R_MIPS_TLS_DTPREL32, R_MIPS_TLS_DTPREL64, R_MIPS_TLS_TPREL32, and R_MIPS_TLS_TPREL64 respectively. The main motivation for this patch is to be able to write test cases for checking correctness of the LLD linker's behaviour. Differential Revision: https://reviews.llvm.org/D23669 llvm-svn: 279439
2016-04-21MachO: enable .data_region directives everywhereTim Northover1-1/+1
We'd disabled them on x86 because back in the early days some host tools couldn't handle the new load commands. This no longer holds: anyone capable of deploying Clang should be able to deploy its copies of ar/ranlib/etc. rdar://25254790 llvm-svn: 267075
2016-01-19[MC, COFF] Add .reloc support for WinCOFFDavid Majnemer1-2/+2
This adds rudimentary support for a few relocations that we will use for the CodeView debug format. llvm-svn: 258216
2015-11-12Implement .reloc (constant offset only) with support for R_MIPS_NONE and ↵Daniel Sanders1-0/+4
R_MIPS_32. Summary: Support for R_MIPS_NONE allows us to parse MIPS16's usage of .reloc. R_MIPS_32 was included to be able to better test the directive. Targets can add their relocations by overriding MCAsmBackend::getFixupKind(). Subscribers: grosbach, rafael, majnemer, dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D13659 llvm-svn: 252888
2015-05-30[MC] Allow backends to decide relaxation for unresolved fixups.Colin LeMahieu1-19/+25
Differential Revision: http://reviews.llvm.org/D8217 llvm-svn: 238659
2014-03-11Simplify a really complicated check for Arch == X86_64.Rafael Espindola1-2/+1
The function hasReliableSymbolDifference had exactly one use in the MachO writer. It is also only true for X86_64. In fact, the comments refers to "Darwin x86_64" and everything else, so this makes the code match the comment. If this is to be abstracted again, it should be a property of TargetObjectWriter, like useAggressiveSymbolFolding. llvm-svn: 203605
2013-07-15Use llvm::array_lengthof to replace sizeof(array)/sizeof(array[0]).Craig Topper1-2/+2
llvm-svn: 186301
2012-10-01MachO: direct-to-object attribute for data-in-code markers.Jim Grosbach1-5/+2
The target backend can support data-in-code load commands even when the assembler doesn't, or vice-versa. Allow targets to opt-in for direct-to-object. PR13973. llvm-svn: 164974
2012-05-11Tidy up. Trailing whitespace.Jim Grosbach1-1/+1
llvm-svn: 156602
2012-03-26Prune some includes and forward declarations.Craig Topper1-0/+1
llvm-svn: 153429
2011-12-24Section relative fixups are a coff concept, not a x86 one. Replace theRafael Espindola1-1/+5
x86 specific reloc_coff_secrel32 with a generic FK_SecRel_4. llvm-svn: 147252
2011-11-23This patch addresses gp relative fixups/relocations for jump tables.Akira Hatanaka1-6/+10
llvm-svn: 145112
2011-07-25Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to ↵Evan Cheng1-0/+37
createMCAsmBackend. llvm-svn: 136010