cheri: fix static linking TLS setup

Use l_addr provenance for TLS initimage.
This commit is contained in:
Carlos Eduardo Seo 2021-06-09 15:23:23 -03:00 committed by Szabolcs Nagy
parent cb79f5073a
commit 4275aff6b8

View File

@ -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;