Skip to content

Require REX prefix to encode R_X86_64_GOTPC32_TLSDESC

H.J. Lu requested to merge usr/hjl/tls-gnu2 into master

LEA instruction with R_X86_64_GOTPC32_TLSDESC relocation must be encoded with REX prefix even if it isn't required by destination register. If the LEA encoding has a variable length, linker can't tell where it starts and can't safely perform GDesc -> IE/LE optimization. See;

https://sourceware.org/bugzilla/show_bug.cgi?id=25416

Merge request reports