mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Update.
2003-04-15 Ulrich Drepper <drepper@redhat.com> * elf/elf.h: Define AT_SYSINFO_EH_FRAME. * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_SYSINFO_EH_FRAME. (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value. * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global): Add _dl_sysinfo_eh_frame field. * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame. * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj variable. [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases if _dl_sysinfo_eh_frame is non-NULL. * Makeconfig (gnulib): Add -lgcc_eh. * config.h.in: Define HAVE_FORCED_UNWIND.
This commit is contained in:
18
ChangeLog
18
ChangeLog
@@ -1,3 +1,21 @@
|
|||||||
|
2003-04-15 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* elf/elf.h: Define AT_SYSINFO_EH_FRAME.
|
||||||
|
* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
|
||||||
|
AT_SYSINFO_EH_FRAME.
|
||||||
|
(_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
|
||||||
|
* sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
|
||||||
|
Add _dl_sysinfo_eh_frame field.
|
||||||
|
* elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
|
||||||
|
* sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
|
||||||
|
variable.
|
||||||
|
[NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
|
||||||
|
if _dl_sysinfo_eh_frame is non-NULL.
|
||||||
|
|
||||||
|
* Makeconfig (gnulib): Add -lgcc_eh.
|
||||||
|
|
||||||
|
* config.h.in: Define HAVE_FORCED_UNWIND.
|
||||||
|
|
||||||
2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
|
2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
|
||||||
|
|
||||||
* sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
|
* sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
|
||||||
|
@@ -505,7 +505,7 @@ link-libc-bounded = $(common-objpfx)libc_b.a $(gnulib) $(common-objpfx)libc_b.a
|
|||||||
link-extra-libs-bounded = $(foreach lib,$(LDLIBS-$(@F:%-bp=%)),$(common-objpfx)$(lib)_b.a)
|
link-extra-libs-bounded = $(foreach lib,$(LDLIBS-$(@F:%-bp=%)),$(common-objpfx)$(lib)_b.a)
|
||||||
|
|
||||||
ifndef gnulib
|
ifndef gnulib
|
||||||
gnulib := -lgcc
|
gnulib := -lgcc -lgcc_eh
|
||||||
endif
|
endif
|
||||||
ifeq ($(elf),yes)
|
ifeq ($(elf),yes)
|
||||||
+preinit = $(addprefix $(csu-objpfx),crti.o)
|
+preinit = $(addprefix $(csu-objpfx),crti.o)
|
||||||
|
@@ -189,6 +189,9 @@
|
|||||||
/* Mach/i386 specific: define if the `i386_set_gdt' RPC is available. */
|
/* Mach/i386 specific: define if the `i386_set_gdt' RPC is available. */
|
||||||
#undef HAVE_I386_SET_GDT
|
#undef HAVE_I386_SET_GDT
|
||||||
|
|
||||||
|
/* Defined if forced unwind support is available. */
|
||||||
|
#undef HAVE_FORCED_UNWIND
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@@ -127,6 +127,8 @@ size_t _dl_phnum;
|
|||||||
#ifdef NEED_DL_SYSINFO
|
#ifdef NEED_DL_SYSINFO
|
||||||
/* Needed for improved syscall handling on at least x86/Linux. */
|
/* Needed for improved syscall handling on at least x86/Linux. */
|
||||||
uintptr_t _dl_sysinfo = DL_SYSINFO_DEFAULT;
|
uintptr_t _dl_sysinfo = DL_SYSINFO_DEFAULT;
|
||||||
|
/* Address of the unwind info for the vsyscall page. */
|
||||||
|
uintptr_t _dl_sysinfo_eh_frame;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* During the program run we must not modify the global data of
|
/* During the program run we must not modify the global data of
|
||||||
|
@@ -949,6 +949,7 @@ typedef struct
|
|||||||
/* Pointer to the global system page used for system calls and other
|
/* Pointer to the global system page used for system calls and other
|
||||||
nice things. */
|
nice things. */
|
||||||
#define AT_SYSINFO 32
|
#define AT_SYSINFO 32
|
||||||
|
#define AT_SYSINFO_EH_FRAME 33
|
||||||
|
|
||||||
|
|
||||||
/* Note section contents. Each entry in the note section begins with
|
/* Note section contents. Each entry in the note section begins with
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
2003-04-15 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* pthreadP.h: Move THREAD_ATOMIC_* replacements to the top.
|
||||||
|
|
||||||
2003-04-14 Ulrich Drepper <drepper@redhat.com>
|
2003-04-14 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Don't
|
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Don't
|
||||||
|
@@ -139,6 +139,9 @@ _dl_sysdep_start (void **start_argptr,
|
|||||||
case AT_SYSINFO:
|
case AT_SYSINFO:
|
||||||
GL(dl_sysinfo) = av->a_un.a_val;
|
GL(dl_sysinfo) = av->a_un.a_val;
|
||||||
break;
|
break;
|
||||||
|
case AT_SYSINFO_EH_FRAME:
|
||||||
|
GL(dl_sysinfo_eh_frame) = av->a_un.a_val;
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
#ifdef DL_PLATFORM_AUXV
|
#ifdef DL_PLATFORM_AUXV
|
||||||
DL_PLATFORM_AUXV
|
DL_PLATFORM_AUXV
|
||||||
@@ -160,7 +163,7 @@ _dl_sysdep_start (void **start_argptr,
|
|||||||
SEE (EGID, gid, egid);
|
SEE (EGID, gid, egid);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* If one of the two pairs of IDs does not mattch this is a setuid
|
/* If one of the two pairs of IDs does not match this is a setuid
|
||||||
or setgid run. */
|
or setgid run. */
|
||||||
INTUSE(__libc_enable_secure) = uid | gid;
|
INTUSE(__libc_enable_secure) = uid | gid;
|
||||||
|
|
||||||
@@ -228,27 +231,28 @@ _dl_show_auxv (void)
|
|||||||
enum { dec, hex, str } form;
|
enum { dec, hex, str } form;
|
||||||
} auxvars[] =
|
} auxvars[] =
|
||||||
{
|
{
|
||||||
[AT_EXECFD - 2] = { "AT_EXECFD: ", dec },
|
[AT_EXECFD - 2] = { "AT_EXECFD: ", dec },
|
||||||
[AT_PHDR - 2] = { "AT_PHDR: 0x", hex },
|
[AT_PHDR - 2] = { "AT_PHDR: 0x", hex },
|
||||||
[AT_PHENT - 2] = { "AT_PHENT: ", dec },
|
[AT_PHENT - 2] = { "AT_PHENT: ", dec },
|
||||||
[AT_PHNUM - 2] = { "AT_PHNUM: ", dec },
|
[AT_PHNUM - 2] = { "AT_PHNUM: ", dec },
|
||||||
[AT_PAGESZ - 2] = { "AT_PAGESZ: ", dec },
|
[AT_PAGESZ - 2] = { "AT_PAGESZ: ", dec },
|
||||||
[AT_BASE - 2] = { "AT_BASE: 0x", hex },
|
[AT_BASE - 2] = { "AT_BASE: 0x", hex },
|
||||||
[AT_FLAGS - 2] = { "AT_FLAGS: 0x", hex },
|
[AT_FLAGS - 2] = { "AT_FLAGS: 0x", hex },
|
||||||
[AT_ENTRY - 2] = { "AT_ENTRY: 0x", hex },
|
[AT_ENTRY - 2] = { "AT_ENTRY: 0x", hex },
|
||||||
[AT_NOTELF - 2] = { "AT_NOTELF: ", hex },
|
[AT_NOTELF - 2] = { "AT_NOTELF: ", hex },
|
||||||
[AT_UID - 2] = { "AT_UID: ", dec },
|
[AT_UID - 2] = { "AT_UID: ", dec },
|
||||||
[AT_EUID - 2] = { "AT_EUID: ", dec },
|
[AT_EUID - 2] = { "AT_EUID: ", dec },
|
||||||
[AT_GID - 2] = { "AT_GID: ", dec },
|
[AT_GID - 2] = { "AT_GID: ", dec },
|
||||||
[AT_EGID - 2] = { "AT_EGID: ", dec },
|
[AT_EGID - 2] = { "AT_EGID: ", dec },
|
||||||
[AT_PLATFORM - 2] = { "AT_PLATFORM: ", str },
|
[AT_PLATFORM - 2] = { "AT_PLATFORM: ", str },
|
||||||
[AT_HWCAP - 2] = { "AT_HWCAP: ", hex },
|
[AT_HWCAP - 2] = { "AT_HWCAP: ", hex },
|
||||||
[AT_CLKTCK - 2] = { "AT_CLKTCK: ", dec },
|
[AT_CLKTCK - 2] = { "AT_CLKTCK: ", dec },
|
||||||
[AT_FPUCW - 2] = { "AT_FPUCW: ", hex },
|
[AT_FPUCW - 2] = { "AT_FPUCW: ", hex },
|
||||||
[AT_DCACHEBSIZE - 2] = { "AT_DCACHEBSIZE: 0x", hex },
|
[AT_DCACHEBSIZE - 2] = { "AT_DCACHEBSIZE: 0x", hex },
|
||||||
[AT_ICACHEBSIZE - 2] = { "AT_ICACHEBSIZE: 0x", hex },
|
[AT_ICACHEBSIZE - 2] = { "AT_ICACHEBSIZE: 0x", hex },
|
||||||
[AT_UCACHEBSIZE - 2] = { "AT_UCACHEBSIZE: 0x", hex },
|
[AT_UCACHEBSIZE - 2] = { "AT_UCACHEBSIZE: 0x", hex },
|
||||||
[AT_SYSINFO - 2] = { "AT_SYSINFO: 0x", hex }
|
[AT_SYSINFO - 2] = { "AT_SYSINFO: 0x", hex },
|
||||||
|
[AT_SYSINFO_EH_FRAME - 2] = { "AT_SYSINFO_EH_FRAME: 0x", hex }
|
||||||
};
|
};
|
||||||
unsigned int idx = (unsigned int) (av->a_type - 2);
|
unsigned int idx = (unsigned int) (av->a_type - 2);
|
||||||
|
|
||||||
|
@@ -394,6 +394,9 @@ struct rtld_global
|
|||||||
#ifdef NEED_DL_SYSINFO
|
#ifdef NEED_DL_SYSINFO
|
||||||
/* Syscall handling improvements. This is very specific to x86. */
|
/* Syscall handling improvements. This is very specific to x86. */
|
||||||
EXTERN uintptr_t _dl_sysinfo;
|
EXTERN uintptr_t _dl_sysinfo;
|
||||||
|
|
||||||
|
/* Address of the unwind info for the vsyscall page. */
|
||||||
|
EXTERN uintptr_t _dl_sysinfo_eh_frame;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
|
@@ -28,6 +28,11 @@ extern void __libc_init_first (int argc, char **argv, char **envp);
|
|||||||
extern int __libc_multiple_libcs;
|
extern int __libc_multiple_libcs;
|
||||||
extern void *__libc_stack_end;
|
extern void *__libc_stack_end;
|
||||||
|
|
||||||
|
#ifdef NEED_DL_SYSINFO
|
||||||
|
# include "unwind-dw2-fde.h"
|
||||||
|
static struct object eh_obj;
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <tls.h>
|
#include <tls.h>
|
||||||
#ifndef SHARED
|
#ifndef SHARED
|
||||||
# include <dl-osinfo.h>
|
# include <dl-osinfo.h>
|
||||||
@@ -150,6 +155,13 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL),
|
|||||||
__libc_check_standard_fds ();
|
__libc_check_standard_fds ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_DL_SYSINFO
|
||||||
|
/* Register the kernel's unwind table. */
|
||||||
|
if (GL(dl_sysinfo_eh_frame) != 0)
|
||||||
|
INTUSE(__register_frame_info_bases) ((void *) GL(dl_sysinfo_eh_frame),
|
||||||
|
&eh_obj, 0, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Register the destructor of the dynamic linker if there is any. */
|
/* Register the destructor of the dynamic linker if there is any. */
|
||||||
if (__builtin_expect (rtld_fini != NULL, 1))
|
if (__builtin_expect (rtld_fini != NULL, 1))
|
||||||
__cxa_atexit ((void (*) (void *)) rtld_fini, NULL, NULL);
|
__cxa_atexit ((void (*) (void *)) rtld_fini, NULL, NULL);
|
||||||
|
Reference in New Issue
Block a user