Make it possible for the MCObjectWriter to decide if a given fixup is fully
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 30 Sep 2010 02:22:20 +0000 (02:22 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 30 Sep 2010 02:22:20 +0000 (02:22 +0000)
commit7070387f08f7dc797b554ed8013cba9f8b74121a
treeb2551756c1093c8e4396c9c2596eca5f8657fd51
parent7ebc863c156c5ccd127045ddb8d663c3b49ac5f3
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
include/llvm/MC/ELFObjectWriter.h
include/llvm/MC/MCAssembler.h
include/llvm/MC/MCObjectWriter.h
include/llvm/MC/MachObjectWriter.h
lib/MC/ELFObjectWriter.cpp
lib/MC/MCAssembler.cpp
lib/MC/MachObjectWriter.cpp
lib/MC/WinCOFFObjectWriter.cpp
test/MC/ELF/relax.s [new file with mode: 0644]