mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Alpha always requires global relocations to be r/w regardless of PIC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68006 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
db2323148b
commit
01209bc12a
@ -16,7 +16,7 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
AlphaTargetAsmInfo::AlphaTargetAsmInfo(const AlphaTargetMachine &TM)
|
||||
AlphaTargetAsmInfo::AlphaTargetAsmInfo(const AlphaTargetMachine &TM)
|
||||
: TargetAsmInfo(TM) {
|
||||
AlignmentIsInBytes = false;
|
||||
PrivateGlobalPrefix = "$";
|
||||
@ -24,3 +24,8 @@ AlphaTargetAsmInfo::AlphaTargetAsmInfo(const AlphaTargetMachine &TM)
|
||||
JumpTableDataSection = "\t.section .rodata\n";
|
||||
WeakRefDirective = "\t.weak\t";
|
||||
}
|
||||
|
||||
unsigned AlphaTargetAsmInfo::RelocBehaviour() const {
|
||||
return (TM.getRelocationModel() != Reloc::Static ?
|
||||
Reloc::LocalOrGlobal : Reloc::Global);
|
||||
}
|
||||
|
@ -23,6 +23,8 @@ namespace llvm {
|
||||
|
||||
struct AlphaTargetAsmInfo : public TargetAsmInfo {
|
||||
explicit AlphaTargetAsmInfo(const AlphaTargetMachine &TM);
|
||||
|
||||
virtual unsigned RelocBehaviour() const;
|
||||
};
|
||||
|
||||
} // namespace llvm
|
||||
|
Loading…
x
Reference in New Issue
Block a user