forked from OSchip/llvm-project
[ELF] Update for LLVM api change
The `Elf_Rel_Impl::setSymbolAndType` method now has the third argument `IsMips64EL` (like complement methods `getSymbol` and `getType`). While we do not support linking of MIPS64 ELF object file just pass `false` to the `setSymbolAndType`. llvm-svn: 227045
This commit is contained in:
parent
5d19c67a68
commit
e4135ae643
|
@ -1039,7 +1039,7 @@ private:
|
|||
uint32_t index =
|
||||
_symbolTable ? _symbolTable->getSymbolTableIndex(ref.target())
|
||||
: (uint32_t)STN_UNDEF;
|
||||
r.setSymbolAndType(index, ref.kindValue());
|
||||
r.setSymbolAndType(index, ref.kindValue(), false);
|
||||
r.r_offset = writer->addressOfAtom(&atom) + ref.offsetInAtom();
|
||||
r.r_addend = 0;
|
||||
// The addend is used only by relative relocations
|
||||
|
@ -1057,7 +1057,7 @@ private:
|
|||
uint32_t index =
|
||||
_symbolTable ? _symbolTable->getSymbolTableIndex(ref.target())
|
||||
: (uint32_t)STN_UNDEF;
|
||||
r.setSymbolAndType(index, ref.kindValue());
|
||||
r.setSymbolAndType(index, ref.kindValue(), false);
|
||||
r.r_offset = writer->addressOfAtom(&atom) + ref.offsetInAtom();
|
||||
DEBUG_WITH_TYPE("ELFRelocationTable",
|
||||
llvm::dbgs() << ref.kindValue() << " relocation at "
|
||||
|
|
Loading…
Reference in New Issue