diff options
author | Nick Kledzik <kledzik@apple.com> | 2014-06-27 22:25:01 +0400 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2014-06-27 22:25:01 +0400 |
commit | 3f69076278421d731a80804a743f89c72384b379 (patch) | |
tree | c169e62efc983af55f662101612ae1241d2ff07f /lld/test/darwin/native-and-mach-o.objtxt | |
parent | dad0a645a7b392900c9fb34f11815060d03a2233 (diff) |
[mach-o] refactor x86_64 relocation handling.
This is first step in reworking how mach-o relocations are processed.
The existing KindHandler is going to become a delgate/helper object for
processing architecture specific references. The KindHandler knows how
to convert mach-o relocations into References and back, as well, as fixing
up the content the relocation is on.
One of the messy things about mach-o relocations is that they sometime
come in pairs, but the pairs still convert to one lld::Reference. So, the
conversion has to detect pairs (arch specific) and change the stride.
llvm-svn: 211921
Diffstat (limited to 'lld/test/darwin/native-and-mach-o.objtxt')
-rw-r--r-- | lld/test/darwin/native-and-mach-o.objtxt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/test/darwin/native-and-mach-o.objtxt b/lld/test/darwin/native-and-mach-o.objtxt index b94bf85ee308..f8e118d5744d 100644 --- a/lld/test/darwin/native-and-mach-o.objtxt +++ b/lld/test/darwin/native-and-mach-o.objtxt @@ -13,7 +13,7 @@ defined-atoms: 00, 00, 00, 31, C0, 5D, C3 ] references: - offset: 7 - kind: X86_64_RELOC_BRANCH + kind: branch32 target: _foo undefined-atoms: |