HomePhabricator

[X86] Add REX prefix for GOTTPOFF/TLSDESC relocs in x32 mode

Authored by hvdijk on Dec 15 2020, 3:07 PM.

Description

[X86] Add REX prefix for GOTTPOFF/TLSDESC relocs in x32 mode

The REX prefix is needed to allow linker relaxations: even if the
instruction we emit may not need it, the linker may change it to a
different instruction which does need it.