HomePhabricator

[COFF] Create range extension thunks for ARM64

Description

[COFF] Create range extension thunks for ARM64

On ARM64, this is normally necessary only after a module exceeds
128 MB in size (while the limit for thumb is 16 MB). For conditional
branches, the range limit is only 1 MB though (the same as for thumb),
and for the tbz instruction, the range is only 32 KB, which allows for
a test much smaller than the full 128 MB.

This fixes PR40467.

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

Details

Committed
mstorsjoFeb 1 2019, 2:08 PM
Differential Revision
D57575: [LLD] [COFF] Create range extension thunks for ARM64
Parents
rL352928: [COFF] Fix crashes when writing a PDB after adding thunks.
Branches
Unknown
Tags
Unknown