MC/Mach-O: PCrel relocations weren't using the right base address, they are
authorDaniel Dunbar <daniel@zuster.org>
Sat, 13 Mar 2010 02:38:00 +0000 (02:38 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 13 Mar 2010 02:38:00 +0000 (02:38 +0000)
commitda3e9f760ce2328f6dfe69663c2b17da02ece2db
tree3da1536ebe72c69d6f21f7d57082073e7bbd863f
parent5e6a7a248b980dd2a98a3613c72b75ba9d01d162
MC/Mach-O: PCrel relocations weren't using the right base address, they are
relative to the fragment address, not its offset. This was masked by the text
section normally being at address 0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98420 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCAssembler.cpp
test/MC/MachO/reloc-pcrel-offset.s [new file with mode: 0644]