mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Index external symbols by symbol table instead of parent section, by Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112472 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
82a3171b72
commit
679d236117
@ -470,7 +470,7 @@ void ELFObjectWriterImpl::RecordRelocation(const MCAssembler &Asm,
|
||||
MCFragment *F = SD.getFragment();
|
||||
|
||||
if (Base) {
|
||||
if (F && (!Symbol->isInSection() || SD.isCommon())) {
|
||||
if (F && (!Symbol->isInSection() || SD.isCommon()) && !SD.isExternal()) {
|
||||
Index = F->getParent()->getOrdinal() + LocalSymbolData.size() + 1;
|
||||
Value += Layout.getSymbolAddress(&SD);
|
||||
} else
|
||||
|
Loading…
x
Reference in New Issue
Block a user