forked from OSchip/llvm-project
Change RelaxELFRelocations for llc.
As a developer tool it makes sense for it to use the new relocations. llvm-svn: 273019
This commit is contained in:
parent
003bd8c367
commit
9f86baebe0
|
@ -98,7 +98,7 @@ namespace llvm {
|
||||||
GuaranteedTailCallOpt(false), StackAlignmentOverride(0),
|
GuaranteedTailCallOpt(false), StackAlignmentOverride(0),
|
||||||
StackSymbolOrdering(true), EnableFastISel(false), UseInitArray(false),
|
StackSymbolOrdering(true), EnableFastISel(false), UseInitArray(false),
|
||||||
DisableIntegratedAS(false), CompressDebugSections(false),
|
DisableIntegratedAS(false), CompressDebugSections(false),
|
||||||
RelaxELFRelocations(false), FunctionSections(false),
|
RelaxELFRelocations(true), FunctionSections(false),
|
||||||
DataSections(false), UniqueSectionNames(true), TrapUnreachable(false),
|
DataSections(false), UniqueSectionNames(true), TrapUnreachable(false),
|
||||||
EmulatedTLS(false), FloatABIType(FloatABI::Default),
|
EmulatedTLS(false), FloatABIType(FloatABI::Default),
|
||||||
AllowFPOpFusion(FPOpFusion::Standard), Reciprocals(TargetRecip()),
|
AllowFPOpFusion(FPOpFusion::Standard), Reciprocals(TargetRecip()),
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
; RUN: llc %s -o %t.o -filetype=obj -relocation-model=pic
|
||||||
|
; RUN: llvm-readobj -r %t.o | FileCheck %s
|
||||||
|
; CHECK: Section ({{.}}) .rela.text {
|
||||||
|
; CHECK-NEXT: 0x3 R_X86_64_REX_GOTPCRELX a 0xFFFFFFFFFFFFFFFC
|
||||||
|
; CHECK-NEXT: }
|
||||||
|
|
||||||
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||||
|
target triple = "x86_64-unknown-linux-gnu"
|
||||||
|
|
||||||
|
@a = external global i32
|
||||||
|
|
||||||
|
define i32 @f() {
|
||||||
|
%t = load i32, i32* @a
|
||||||
|
ret i32 %t
|
||||||
|
}
|
Loading…
Reference in New Issue