HomePhabricator

AArch64: make sure jump table entries can reach entire image

Authored by t.p.northover on Sep 8 2020, 3:08 AM.

Description

AArch64: make sure jump table entries can reach entire image

This turns all jump table entries into deltas within the target
function because in the small memory model all code & static data must
be in a 4GB block somewhere in memory.

When the entries were a delta between the table location and a basic
block, the 32-bit signed entries are not enough to guarantee
reachability.

https://reviews.llvm.org/D87286

Details

Committed
t.p.northoverSep 18 2020, 1:50 AM
Parents
rGc0e7f6468578: [NFC][gotsan] Fix 'format' error
Branches
Unknown
Tags
Unknown