mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
IA64 is as weird as Alpha wrt r/o relocs :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68007 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "IA64TargetAsmInfo.h"
|
#include "IA64TargetAsmInfo.h"
|
||||||
|
#include "llvm/Constants.h"
|
||||||
|
#include "llvm/Target/TargetMachine.h"
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@@ -34,4 +36,9 @@ IA64TargetAsmInfo::IA64TargetAsmInfo(const TargetMachine &TM):
|
|||||||
ConstantPoolSection = "\n\t.section .data, \"aw\", \"progbits\"\n";
|
ConstantPoolSection = "\n\t.section .data, \"aw\", \"progbits\"\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned IA64TargetAsmInfo::RelocBehaviour() const {
|
||||||
|
return (TM.getRelocationModel() != Reloc::Static ?
|
||||||
|
Reloc::LocalOrGlobal : Reloc::Global);
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME: Support small data/bss/rodata sections someday.
|
// FIXME: Support small data/bss/rodata sections someday.
|
||||||
|
@@ -24,6 +24,7 @@ namespace llvm {
|
|||||||
|
|
||||||
struct IA64TargetAsmInfo : public ELFTargetAsmInfo {
|
struct IA64TargetAsmInfo : public ELFTargetAsmInfo {
|
||||||
explicit IA64TargetAsmInfo(const TargetMachine &TM);
|
explicit IA64TargetAsmInfo(const TargetMachine &TM);
|
||||||
|
virtual unsigned RelocBehaviour() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user