mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-21 02:29:22 +00:00
Fix thinko: put stuff with both global and local relocations into data.rel{.ro}, not .local
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68036 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
30ffe8150f
commit
29519b1de0
@ -58,11 +58,11 @@ ELFTargetAsmInfo::SectionKindForGlobal(const GlobalValue *GV) const {
|
|||||||
bool isConstant = GVar->isConstant();
|
bool isConstant = GVar->isConstant();
|
||||||
unsigned Reloc = RelocBehaviour();
|
unsigned Reloc = RelocBehaviour();
|
||||||
if (Reloc != Reloc::None && C->ContainsRelocations(Reloc))
|
if (Reloc != Reloc::None && C->ContainsRelocations(Reloc))
|
||||||
return (C->ContainsRelocations(Reloc::Local) ?
|
return (C->ContainsRelocations(Reloc::Global) ?
|
||||||
(isConstant ?
|
(isConstant ?
|
||||||
SectionKind::DataRelROLocal : SectionKind::DataRelLocal) :
|
SectionKind::DataRelRO : SectionKind::DataRel) :
|
||||||
(isConstant ?
|
(isConstant ?
|
||||||
SectionKind::DataRelRO : SectionKind::DataRel));
|
SectionKind::DataRelROLocal : SectionKind::DataRelLocal));
|
||||||
}
|
}
|
||||||
|
|
||||||
return Kind;
|
return Kind;
|
||||||
|
Loading…
Reference in New Issue
Block a user