Don't bypass the GOT for delta32toGOT references.
authorPete Cooper <peter_cooper@apple.com>
Wed, 9 Dec 2015 00:46:02 +0000 (00:46 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 9 Dec 2015 00:46:02 +0000 (00:46 +0000)
commit466d4b006b91996c26f719ecaffdcc801f74b55d
treec6dec3dfb2ee813cdb6187a18587732a96bb288d
parent50102c29f09bfe38ca862036d5a6e5f54a5beff8
Don't bypass the GOT for delta32toGOT references.

The gcc_except_tab was generating these references to point to the typeinfo in the data section.

gcc_except_tab also had the DW_EH_PE_indirect flag set which means that at runtime we are going
to dereference this entry as if it is in the GOT.

Reviewed by Nick Kledzik in http://reviews.llvm.org/D15360.

llvm-svn: 255085
lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp
lld/test/mach-o/gcc_except_tab-got-arm64.yaml [new file with mode: 0644]
lld/test/mach-o/unwind-info-simple-arm64.yaml