Make it possible for the MCObjectWriter to decide if a given fixup is fully

resolved or not. Different object files have different restrictions and
different native assemblers have different idiosyncrasies we want to emulate
for now.

Move the existing MachO logic to the new place and implement an ELF one that
gets fixups to globals right.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115131 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2010-09-30 02:22:20 +00:00
parent 7ebc863c15
commit 7070387f08
9 changed files with 274 additions and 137 deletions

View File

@@ -36,6 +36,11 @@ public:
const MCFixup &Fixup, MCValue Target,
uint64_t &FixedValue);
virtual bool IsFixupFullyResolved(const MCAssembler &Asm,
const MCValue Target,
bool IsPCRel,
const MCFragment *DF) const;
virtual void WriteObject(const MCAssembler &Asm, const MCAsmLayout &Layout);
};