summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64Subtarget.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2019-12-19 14:00:44 +0200
committerMartin Storsjö <martin@martin.st>2019-12-23 12:13:49 +0200
commitb774aa1011a031b225624277178382bb2db7e26a (patch)
treee07213dcc36314ffb90b90fd3c7c56159a9654c9 /llvm/lib/Target/AArch64/AArch64Subtarget.cpp
parent86c9831bb40d2c50c36b748b08a75860c4640875 (diff)
downloadbcm5719-llvm-b774aa1011a031b225624277178382bb2db7e26a.tar.gz
bcm5719-llvm-b774aa1011a031b225624277178382bb2db7e26a.zip
[ARM] [Windows] Use COFF stubs for calls to extern_weak functions
As the extern_weak target might be missing, resolving to the absolute address zero, we can't use the normal direct PC-relative branch instructions (as that would result in relocations out of range). Instead check the shouldAssumeDSOLocal method and load the address from a COFF stub. This matches what was done for X86 in 6bf108d77a3c. Differential Revision: https://reviews.llvm.org/D71720
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64Subtarget.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud