mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses TLS fail is USE_TLS is not defined.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2002-07-15 Ulrich Drepper <drepper@redhat.com>
|
2002-07-15 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
|
||||||
|
TLS fail is USE_TLS is not defined.
|
||||||
|
|
||||||
* libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
|
* libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
|
||||||
and adjust state for seek position. [PR libc/4070]
|
and adjust state for seek position. [PR libc/4070]
|
||||||
* libio/Makefile (tests): Add bug-rewind.
|
* libio/Makefile (tests): Add bug-rewind.
|
||||||
|
@ -940,8 +940,8 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef USE_TLS
|
|
||||||
case PT_TLS:
|
case PT_TLS:
|
||||||
|
#ifdef USE_TLS
|
||||||
if (ph->p_memsz > 0)
|
if (ph->p_memsz > 0)
|
||||||
{
|
{
|
||||||
l->l_tls_blocksize = ph->p_memsz;
|
l->l_tls_blocksize = ph->p_memsz;
|
||||||
@ -954,8 +954,12 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp,
|
|||||||
/* Assign the next available module ID. */
|
/* Assign the next available module ID. */
|
||||||
l->l_tls_modid = _dl_next_tls_modid ();
|
l->l_tls_modid = _dl_next_tls_modid ();
|
||||||
}
|
}
|
||||||
break;
|
#else
|
||||||
|
/* Uh-oh, the binary expects TLS support but we cannot
|
||||||
|
provide it. */
|
||||||
|
_dl_fatal_printf ("cannot handle file '%s' with TLS data", name);
|
||||||
#endif
|
#endif
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Now process the load commands and map segments into memory. */
|
/* Now process the load commands and map segments into memory. */
|
||||||
|
Reference in New Issue
Block a user