forked from OSchip/llvm-project
Use errorDynRel like every other target.
llvm-svn: 272305
This commit is contained in:
parent
24de767113
commit
e8b8a347c7
|
@ -618,7 +618,7 @@ void X86_64TargetInfo::writePlt(uint8_t *Buf, uint64_t GotEntryAddr,
|
|||
|
||||
uint32_t X86_64TargetInfo::getDynRel(uint32_t Type) const {
|
||||
if (Type == R_X86_64_PC32 || Type == R_X86_64_32)
|
||||
error(getRelName(Type) + " cannot be a dynamic relocation");
|
||||
errorDynRel(Type);
|
||||
return Type;
|
||||
}
|
||||
|
||||
|
|
|
@ -9,4 +9,4 @@ _start:
|
|||
.data
|
||||
.long bar
|
||||
|
||||
// CHECK: R_X86_64_32 cannot be a dynamic relocation
|
||||
// CHECK: R_X86_64_32 cannot be used when making a shared object; recompile with -fPIC.
|
||||
|
|
|
@ -9,4 +9,4 @@ _start:
|
|||
.data
|
||||
.long bar - .
|
||||
|
||||
// CHECK: R_X86_64_PC32 cannot be a dynamic relocation
|
||||
// CHECK: R_X86_64_PC32 cannot be used when making a shared object; recompile with -fPIC.
|
||||
|
|
Loading…
Reference in New Issue