Add support for the R_ARM_TARGET1 relocation, which should be given to relocations...
authorJames Molloy <james.molloy@arm.com>
Thu, 26 Jan 2012 09:25:43 +0000 (09:25 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 26 Jan 2012 09:25:43 +0000 (09:25 +0000)
commit34982576a43887e7f062ed0a3571af2cbab003f3
tree672c8ca4d13c41c1f797d7278c1ea3db30fc5cc5
parent668f7ac9e4642e1b4af4f5b047d569c68bc2c55f
Add support for the R_ARM_TARGET1 relocation, which should be given to relocations applied to all C++ constructors and destructors.

This enables the linker to match concrete relocation types (absolute or relative) with whatever library or C++ support code is being linked against.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149057 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
include/llvm/MC/MCExpr.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/MC/MCExpr.cpp
lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/ARM/ARMAsmPrinter.h
lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
test/MC/ARM/cxx-global-constructor.ll [new file with mode: 0644]