forked from OSchip/llvm-project
Revert unrelated change that was accidentally included in the previous commit.
llvm-svn: 114383
This commit is contained in:
parent
f0591c1642
commit
461a692c7f
|
@ -504,10 +504,7 @@ void ELFObjectWriterImpl::RecordRelocation(const MCAssembler &Asm,
|
|||
if (Base) {
|
||||
if (F && (!Symbol->isInSection() || SD.isCommon()) && !SD.isExternal()) {
|
||||
Index = F->getParent()->getOrdinal() + LocalSymbolData.size() + 1;
|
||||
|
||||
MCSectionData *FSD = F->getParent();
|
||||
// Offset of the symbol in the section
|
||||
Value += Layout.getSymbolAddress(&SD) - Layout.getSectionAddress(FSD);
|
||||
Value += Layout.getSymbolAddress(&SD);
|
||||
} else
|
||||
Index = getSymbolIndexInSymbolTable(Asm, Symbol);
|
||||
if (Base != &SD)
|
||||
|
|
Loading…
Reference in New Issue