rtld-elf: Mark tls_init_align __unused in free_tls for Variant I TLS.
Some architectures (powerpc and RISC-V) always use 0 for the post TLS size in which case tls_init_align isn't used by calculate_tls_post_size. Use __unused to quiet the warning for these platforms. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D40673
This commit is contained in:
parent
3456659866
commit
38efd4df23
@ -5309,7 +5309,7 @@ free_tls(void *tcb, size_t tcbsize, size_t tcbalign __unused)
|
|||||||
Elf_Addr *dtv;
|
Elf_Addr *dtv;
|
||||||
Elf_Addr tlsstart, tlsend;
|
Elf_Addr tlsstart, tlsend;
|
||||||
size_t post_size;
|
size_t post_size;
|
||||||
size_t dtvsize, i, tls_init_align;
|
size_t dtvsize, i, tls_init_align __unused;
|
||||||
|
|
||||||
assert(tcbsize >= TLS_TCB_SIZE);
|
assert(tcbsize >= TLS_TCB_SIZE);
|
||||||
tls_init_align = MAX(obj_main->tlsalign, 1);
|
tls_init_align = MAX(obj_main->tlsalign, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user