mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-12 20:20:18 +00:00
cheri: fix static linking TLS setup
Use l_addr provenance for TLS initimage.
This commit is contained in:
parent
cb79f5073a
commit
4275aff6b8
@ -125,7 +125,7 @@ __libc_setup_tls (void)
|
||||
/* Remember the values we need. */
|
||||
memsz = phdr->p_memsz;
|
||||
filesz = phdr->p_filesz;
|
||||
initimage = (void *) phdr->p_vaddr + main_map->l_addr;
|
||||
initimage = phdr->p_vaddr + (void *) main_map->l_addr;
|
||||
align = phdr->p_align;
|
||||
if (phdr->p_align > max_align)
|
||||
max_align = phdr->p_align;
|
||||
|
Loading…
Reference in New Issue
Block a user