diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 0aa9af5d8fc0a22a71cb1da698323c396c626a0f..dd987ee011bb8afac8b05775059de03a35fe1834 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -1253,7 +1253,7 @@ elf_x86_64_check_tls_transition (bfd *abfd, if (largepic) return r_type == R_X86_64_PLTOFF64; else if (indirect_call) - return r_type == R_X86_64_GOTPCRELX; + return (r_type == R_X86_64_GOTPCRELX || r_type == R_X86_64_GOTPCREL); else return (r_type == R_X86_64_PC32 || r_type == R_X86_64_PLT32); }