Use errorDynRel like every other target.

llvm-svn: 272305
This commit is contained in:
Rafael Espindola 2016-06-09 20:42:04 +00:00
parent 24de767113
commit e8b8a347c7
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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.

View File

@ -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.