mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Fix Addend computation for non external relocations on Macho.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180790 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1414,6 +1414,16 @@ MachOObjectFile::getAnyRelocationType(const macho::RelocationEntry &RE) const {
|
||||
return getPlainRelocationType(this, RE);
|
||||
}
|
||||
|
||||
SectionRef
|
||||
MachOObjectFile::getRelocationSection(const macho::RelocationEntry &RE) const {
|
||||
if (isRelocationScattered(RE) || getPlainRelocationExternal(RE))
|
||||
return *end_sections();
|
||||
unsigned SecNum = getPlainRelocationSymbolNum(RE) - 1;
|
||||
DataRefImpl DRI;
|
||||
DRI.d.a = SecNum;
|
||||
return SectionRef(DRI, this);
|
||||
}
|
||||
|
||||
MachOObjectFile::LoadCommandInfo
|
||||
MachOObjectFile::getFirstLoadCommandInfo() const {
|
||||
MachOObjectFile::LoadCommandInfo Load;
|
||||
|
Reference in New Issue
Block a user