ELF: Don't reuse a thunk in a different loadable partition.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 29 May 2019 04:06:01 +0000 (04:06 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 29 May 2019 04:06:01 +0000 (04:06 +0000)
commit87575f6501dc4c1ae27e3bd6a469fa0391964a2b
tree0d994bf6ab32ea85945383aa5bfe62a78e5578ba
parentba2816be824adfa7171d14d472ad645ab9edc5b3
ELF: Don't reuse a thunk in a different loadable partition.

There's no guarantee that the other partition will be loaded, so it
can't be reused.

Differential Revision: https://reviews.llvm.org/D62365

llvm-svn: 361926
lld/ELF/Relocations.cpp
lld/ELF/Relocations.h
lld/test/ELF/partition-thunk-reuse.s [new file with mode: 0644]