mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
aarch64: Use PTR_REG macro to fix ILP32 bug and make code consistent
* sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use PTR_REG macro in cmp instruction.
This commit is contained in:
parent
b513da7e80
commit
5a706f649d
@ -1,3 +1,9 @@
|
||||
2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||
Steve Ellcey <sellcey@cavium.com>
|
||||
|
||||
* sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
|
||||
Use PTR_REG macro in cmp instruction.
|
||||
|
||||
2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
|
||||
|
||||
* include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
|
||||
|
@ -208,7 +208,7 @@ _dl_tlsdesc_dynamic:
|
||||
ldr PTR_REG (2), [x1,#TLSDESC_MODID]
|
||||
add PTR_REG (0), PTR_REG (0), PTR_REG (2), lsl #(PTR_LOG_SIZE + 1)
|
||||
ldr PTR_REG (0), [x0] /* Load val member of DTV entry. */
|
||||
cmp x0, #TLS_DTV_UNALLOCATED
|
||||
cmp PTR_REG (0), #TLS_DTV_UNALLOCATED
|
||||
b.eq 2f
|
||||
ldr PTR_REG (1), [x1,#TLSDESC_MODOFF]
|
||||
add PTR_REG (0), PTR_REG (0), PTR_REG (1)
|
||||
|
Loading…
Reference in New Issue
Block a user