case R_386_TLS_IE:
/* Check transition from IE access model:
- movl foo@indntpoff(%rip), %eax
- movl foo@indntpoff(%rip), %reg
- addl foo@indntpoff(%rip), %reg
+ movl foo@indntpoff, %eax
+ movl foo@indntpoff, %reg
+ addl foo@indntpoff, %reg
*/
if (offset < 1 || (offset + 4) > sec->size)
return elf_x86_tls_error_yes;
- /* Check "movl foo@tpoff(%rip), %eax" first. */
+ /* Check "movl foo@indntpoff, %eax" first. */
val = bfd_get_8 (abfd, contents + offset - 1);
if (val == 0xa1)
return elf_x86_tls_error_none;
if (offset < 2)
return elf_x86_tls_error_yes;
- /* Check movl|addl foo@tpoff(%rip), %reg. */
+ /* Check movl|addl foo@indntpoff, %reg. */
type = bfd_get_8 (abfd, contents + offset - 2);
if (type != 0x8b && type != 0x03)
return elf_x86_tls_error_add_mov;
{
case R_386_TLS_DESC_CALL:
/* Check valid GDesc call:
- call *x@tlsdesc(%eax)
+ call *x@tlscall(%eax)
*/
offset = rel->r_offset;
call = NULL;
if (offset + 2 <= sec->size)
{
- /* Make sure that it's a call *x@tlsdesc(%eax). */
+ /* Make sure that it's a call *x@tlscall(%eax). */
call = contents + offset;
if (call[0] != 0xff || call[1] != 0x10)
call = NULL;
{
case R_X86_64_TLSDESC_CALL:
/* Check valid GDesc call:
- call *x@tlsdesc(%rax) <--- LP64 mode.
- call *x@tlsdesc(%eax) <--- X32 mode.
+ call *x@tlscall(%rax) <--- LP64 mode.
+ call *x@tlscall(%eax) <--- X32 mode.
*/
offset = rel->r_offset;
call = NULL;
prefix = 0;
if (!ABI_64_P (abfd))
{
- /* Check for call *x@tlsdesc(%eax). */
+ /* Check for call *x@tlscall(%eax). */
if (call[0] == 0x67)
{
prefix = 1;
}
}
- /* Make sure that it's a call *x@tlsdesc(%rax). */
+ /* Make sure that it's a call *x@tlscall(%rax). */
if (call != NULL
&& (call[prefix] != 0xff || call[1 + prefix] != 0x10))
call = NULL;
unsigned int prefix = 0;
if (!ABI_64_P (input_bfd))
{
- /* Check for call *x@tlsdesc(%eax). */
+ /* Check for call *x@tlscall(%eax). */
if (contents[roff] == 0x67)
prefix = 1;
}
unsigned int prefix = 0;
if (!ABI_64_P (input_bfd))
{
- /* Check for call *x@tlsdesc(%eax). */
+ /* Check for call *x@tlscall(%eax). */
if (contents[roff] == 0x67)
prefix = 1;
}