|
|
8a8cfb |
commit 30ba0375464f34e4bf8129f3d3dc14d0c09add17
|
|
|
8a8cfb |
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
|
|
|
8a8cfb |
Date: Tue Jul 9 12:11:39 2019 +0100
|
|
|
8a8cfb |
|
|
|
8a8cfb |
aarch64: simplify the DT_AARCH64_VARIANT_PCS handling code
|
|
|
8a8cfb |
|
|
|
8a8cfb |
Remove unnecessary variant_pcs field: the dynamic tag can be checked
|
|
|
8a8cfb |
directly.
|
|
|
8a8cfb |
|
|
|
8a8cfb |
* sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
|
|
|
8a8cfb |
DT_AARCH64_VARIANT_PCS check.
|
|
|
8a8cfb |
(elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
|
|
|
8a8cfb |
* sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
|
|
|
8a8cfb |
variant_pcs.
|
|
|
8a8cfb |
|
|
|
8a8cfb |
diff --git a/sysdeps/aarch64/dl-machine.h b/sysdeps/aarch64/dl-machine.h
|
|
|
8a8cfb |
index d4494852b32b8783..b39eae4acf4086ee 100644
|
|
|
8a8cfb |
--- a/sysdeps/aarch64/dl-machine.h
|
|
|
8a8cfb |
+++ b/sysdeps/aarch64/dl-machine.h
|
|
|
8a8cfb |
@@ -105,10 +105,6 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
|
|
|
8a8cfb |
}
|
|
|
8a8cfb |
}
|
|
|
8a8cfb |
|
|
|
8a8cfb |
- /* Check if STO_AARCH64_VARIANT_PCS needs to be handled. */
|
|
|
8a8cfb |
- if (l->l_info[DT_AARCH64 (VARIANT_PCS)])
|
|
|
8a8cfb |
- l->l_mach.variant_pcs = 1;
|
|
|
8a8cfb |
-
|
|
|
8a8cfb |
return lazy;
|
|
|
8a8cfb |
}
|
|
|
8a8cfb |
|
|
|
8a8cfb |
@@ -402,7 +398,7 @@ elf_machine_lazy_rel (struct link_map *map,
|
|
|
8a8cfb |
return;
|
|
|
8a8cfb |
}
|
|
|
8a8cfb |
|
|
|
8a8cfb |
- if (__glibc_unlikely (map->l_mach.variant_pcs))
|
|
|
8a8cfb |
+ if (__glibc_unlikely (map->l_info[DT_AARCH64 (VARIANT_PCS)] != NULL))
|
|
|
8a8cfb |
{
|
|
|
8a8cfb |
/* Check the symbol table for variant PCS symbols. */
|
|
|
8a8cfb |
const Elf_Symndx symndx = ELFW (R_SYM) (reloc->r_info);
|
|
|
8a8cfb |
diff --git a/sysdeps/aarch64/linkmap.h b/sysdeps/aarch64/linkmap.h
|
|
|
8a8cfb |
index dd8597470c3d2174..6852f343a1efd150 100644
|
|
|
8a8cfb |
--- a/sysdeps/aarch64/linkmap.h
|
|
|
8a8cfb |
+++ b/sysdeps/aarch64/linkmap.h
|
|
|
8a8cfb |
@@ -20,5 +20,4 @@ struct link_map_machine
|
|
|
8a8cfb |
{
|
|
|
8a8cfb |
ElfW(Addr) plt; /* Address of .plt */
|
|
|
8a8cfb |
void *tlsdesc_table; /* Address of TLS descriptor hash table. */
|
|
|
8a8cfb |
- int variant_pcs; /* If set, PLT calls may follow a variant PCS. */
|
|
|
8a8cfb |
};
|