forked from OSchip/llvm-project
parent
797bcb40e3
commit
f530b322b3
|
@ -219,11 +219,11 @@ bool PPCMachObjectWriter::recordScatteredRelocation(
|
|||
const MCSymbol *SB = &B->getSymbol();
|
||||
|
||||
if (!SB->getFragment())
|
||||
report_fatal_error("symbol '" + B->getSymbol().getName() +
|
||||
report_fatal_error("symbol '" + SB->getName() +
|
||||
"' can not be undefined in a subtraction expression");
|
||||
|
||||
// FIXME: is Type correct? see include/llvm/BinaryFormat/MachO.h
|
||||
Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout);
|
||||
Value2 = Writer->getSymbolAddress(*SB, Layout);
|
||||
FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent());
|
||||
}
|
||||
// FIXME: does FixedValue get used??
|
||||
|
|
Loading…
Reference in New Issue