OSDN Git Service

MC/Mach-O/x86_64: Add relocation support.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 19 Mar 2010 18:07:55 +0000 (18:07 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 19 Mar 2010 18:07:55 +0000 (18:07 +0000)
commit602b40f0d06d6275cbe73de2ac3b6b6a7dc1d46d
treedc65acd24fad9b8f1c22fa94aa00d30479260d4f
parent4d4358e8b083b38e2d7e9de3ab102e5665ffb8e2
MC/Mach-O/x86_64: Add relocation support.
 - This is "extraordinarily" Darwin 'as' compatible. See the litany of FIXMEs littered about for more information.
 - There are a few cases which seem to clearly be 'as' bugs which I have left unsupported, and there is one cases where we diverge but should fix if it blocks diffing .o files (Darwin 'as' ends up widening a jump unnecessarily).
 - 403.gcc build, runs, and diffs equivalently to the 'as' built version now (using llvm-mc). However, it builds so slowly that I wouldn't recommend trying it quite yet. :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98974 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MachObjectWriter.cpp
test/MC/MachO/darwin-x86_64-diff-relocs.s [new file with mode: 0644]
test/MC/MachO/darwin-x86_64-reloc-offsets.s [new file with mode: 0644]
test/MC/MachO/darwin-x86_64-reloc.s [new file with mode: 0644]