Ulrich Drepper
83ab449d41
Replace lll_private_futex_* (*) with lll_futex_* (*, LLL_PRIVATE).
2007-07-28 19:30:20 +00:00
Ulrich Drepper
a34f2176e5
Adjust use of lll_futex_* macros.
2007-06-08 02:47:50 +00:00
Ulrich Drepper
6f02480c59
(THREAD_GSCOPE_FLAG_UNUSED, THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
...
THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
THREAD_GSCOPE_WAIT): Define.
2007-05-28 16:40:52 +00:00
Ulrich Drepper
069ba66371
USE_TLS support is now default.
2006-10-27 23:11:45 +00:00
Ulrich Drepper
dca1cac0fb
(tcbhead_t): Rename member to __private.
2006-01-13 21:38:17 +00:00
Roland McGrath
f509f30808
2006-01-10 Roland McGrath <roland@redhat.com>
...
* sysdeps/alpha/jmpbuf-unwind.h: File moved to main source tree.
* sysdeps/i386/jmpbuf-unwind.h: Likewise.
* sysdeps/mips/jmpbuf-unwind.h: Likewise.
* sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
* sysdeps/s390/jmpbuf-unwind.h: Likewise.
* sysdeps/sh/jmpbuf-unwind.h: Likewise.
* sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
* sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
* sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
2006-01-10 08:23:22 +00:00
Roland McGrath
52abb5ce24
2005-12-27 Roland McGrath <roland@redhat.com>
...
* sysdeps/x86_64/jmpbuf-unwind.h (_jmpbuf_sp): New inline function.
(_JMPBUF_UNWINDS_ADJ): Use it, to PTR_DEMANGLE before comparison.
* sysdeps/alpha/jmpbuf-unwind.h: Likewise.
* sysdeps/i386/jmpbuf-unwind.h: Likewise.
* sysdeps/mips/jmpbuf-unwind.h: Likewise.
* sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
* sysdeps/s390/jmpbuf-unwind.h: Likewise.
* sysdeps/sh/jmpbuf-unwind.h: Likewise.
* sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
* sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
2005-12-28 05:41:16 +00:00
Ulrich Drepper
e9c3f06f28
* csu/elf-init.c (__libc_csu_fini): Don't do anything here.
...
* sysdeps/generic/libc-start.c: Don't register program destructor here.
* dlfcn/Makefile: Add rules to build dlfcn.c.
(LDFLAGS-dl.so): Removed.
* dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
table.
* dlfcn/dlmopen.c: Likewise for _dl_open.
* dlfcn/dlopen.c: Likewise.
* dlfcn/dlopenold.c: Likewise.
* elf/dl-libc.c: Likewise for _dl_open and _dl_close.
* elf/Makefile (routines): Remove dl-open and dl-close.
(dl-routines): Add dl-open, dl-close, and dl-trampoline.
Add rules to build and run tst-audit1.
* elf/tst-audit1.c: New file.
* elf/tst-auditmod1.c: New file.
* elf/Versions [libc]: Remove _dl_open and _dl_close.
* elf/dl-close.c: Change for use inside ld.so instead of libc.so.
* elf/dl-open.c: Likewise.
* elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
signaled by nonzero parameter.
* elf/dl-init.c: Fix use of r_state.
* elf/dl-load.c: Likewise.
* elf/dl-close.c: Add auditing checkpoints.
* elf/dl-open.c: Likewise.
* elf/dl-fini.c: Likewise.
* elf/dl-load.c: Likewise.
* elf/dl-sym.c: Likewise.
* sysdeps/generic/libc-start.c: Likewise.
* elf/dl-object.c: Allocate memory for auditing information.
* elf/dl-reloc.c: Remove RESOLV. We now always need the map.
Correctly initialize slotinfo.
* elf/dynamic-link.h: Adjust after removal of RESOLV.
* sysdeps/hppa/dl-lookupcfg.h: Likewise.
* sysdeps/ia64/dl-lookupcfg.h: Likewise.
* sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
* elf/dl-runtime.c (_dl_fixup): Little cleanup.
(_dl_profile_fixup): New parameters to point to register struct and
variable for frame size.
Add auditing checkpoints.
(_dl_call_pltexit): New function.
Don't define trampoline code here.
* elf/rtld.c: Recognize LD_AUDIT. Load modules on startup.
Remove all the functions from _rtld_global_ro which only _dl_open
and _dl_close needed.
Add auditing checkpoints.
* elf/link.h: Define symbols for auditing interfaces.
* include/link.h: Likewise.
* include/dlfcn.h: Define __RTLD_AUDIT.
Remove prototypes for _dl_open and _dl_close.
Adjust access to argc and argv in libdl.
* dlfcn/dlfcn.c: New file.
* sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
is gone.
* sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
* sysdeps/generic/unsecvars.h: Add LD_AUDIT.
* sysdeps/i386/dl-machine.h: Remove trampoline code here.
Adjust for removal of RESOLVE.
* sysdeps/x86_64/dl-machine.h: Likewise.
* sysdeps/generic/dl-trampoline.c: New file.
* sysdeps/i386/dl-trampoline.c: New file.
* sysdeps/x86_64/dl-trampoline.c: New file.
* sysdeps/generic/dl-tls.c: Cleanups. Fixup for dtv_t change.
Fix updating of DTV.
* sysdeps/generic/libc-tls.c: Likewise.
* sysdeps/arm/bits/link.h: Renamed to ...
* sysdeps/arm/buts/linkmap.h: ...this.
* sysdeps/generic/bits/link.h: Renamed to...
* sysdeps/generic/bits/linkmap.h: ...this.
* sysdeps/hppa/bits/link.h: Renamed to...
* sysdeps/hppa/bits/linkmap.h: ...this.
* sysdeps/hppa/i386/link.h: Renamed to...
* sysdeps/hppa/i386/linkmap.h: ...this.
* sysdeps/hppa/ia64/link.h: Renamed to...
* sysdeps/hppa/ia64/linkmap.h: ...this.
* sysdeps/hppa/s390/link.h: Renamed to...
* sysdeps/hppa/s390/linkmap.h: ...this.
* sysdeps/hppa/sh/link.h: Renamed to...
* sysdeps/hppa/sh/linkmap.h: ...this.
* sysdeps/hppa/x86_64/link.h: Renamed to...
* sysdeps/hppa/x86_64/linkmap.h: ...this.
2005-01-06 22:40:24 +00:00
Richard Henderson
0141927118
* sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Add support
...
for NPTL where the PID is stored at userlevel and needs to be
reset when CLONE_THREAD is not used.
nptl/
* sysdeps/unix/sysv/linux/alpha/clone.S: New file.
* sysdeps/alpha/tcb-offsets.sym (TID_OFFSET): New.
2004-12-17 10:11:44 +00:00
Richard Henderson
73e5300008
* sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
...
make gcc4 happy.
2004-10-15 07:07:57 +00:00
Ulrich Drepper
99e111a7c2
Define __libc_unwind_longjmp.
2004-09-02 22:46:02 +00:00
Ulrich Drepper
594e390a37
(MULTIPLE_THREADS_OFFSET): Define unconditionally.
2004-06-28 20:57:50 +00:00
Richard Henderson
76deb69747
* sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New.
...
* sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Save/restore PID.
* sysdeps/unix/sysv/linux/alpha/vfork.S: New file.
2004-03-11 21:34:25 +00:00
Richard Henderson
bbbfa1b98e
* sysdeps/alpha/tls.h (tcbhead_t): Add private.
...
(TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN, TLS_TCB_SIZE,
TLS_PRE_TCB_SIZE, TLS_TCB_ALIGN, INSTALL_DTV, INSTALL_NEW_DTV,
GET_DTV, THREAD_DTV, THREAD_SELF, DB_THREAD_SELF): Match ia64.
(TLS_TCB_OFFSET, THREAD_ID, NO_TLS_OFFSET): Remove.
(THREAD_GETMEM, THREAD_GETMEM_NC): Simplify.
(THREAD_SETMEM, THREAD_SETMEM_NC): Likewise.
* sysdeps/unix/sysv/linux/alpha/createthread.c (TLS_VALUE): Match ia64.
2004-01-16 05:23:05 +00:00
Richard Henderson
b17d80b12f
* sysdeps/alpha/Makefile: New file.
...
* sysdeps/alpha/tcb-offsets.sym: New file.
* sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.
* sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
on powerpc version.
2004-01-13 09:36:22 +00:00
Roland McGrath
b1c81c0040
2003-12-11 Ulrich Weigand <uweigand@de.ibm.com>
...
* sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
register as second parameter to the REGISTER macro.
* sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
* sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
* sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
* sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
* sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
of thread register as second parameter to REGISTER macro in 64 case.
2004-01-06 10:31:07 +00:00
Ulrich Drepper
e445ac3d49
Setjmp buffer unwinding helper code for Alpha.
2003-12-19 01:35:07 +00:00
Roland McGrath
ad8d610d5c
2003-09-05 Roland McGrath <roland@redhat.com>
...
* pthread_create.c (__pthread_pthread_sizeof_descr): Removed.
Instead, include ../nptl_db/db_info.c to do its magic.
* pthread_key_create.c (__pthread_pthread_keys_max): Removed.
(__pthread_pthread_key_2ndlevel_size): Likewise.
* sysdeps/alpha/tls.h (DB_THREAD_SELF): New macro.
* sysdeps/i386/tls.h (DB_THREAD_SELF): New macro.
* sysdeps/ia64/tls.h (DB_THREAD_SELF): New macro.
* sysdeps/powerpc/tls.h (DB_THREAD_SELF): New macro.
* sysdeps/s390/tls.h (DB_THREAD_SELF): New macro.
* sysdeps/sh/tls.h (DB_THREAD_SELF): New macro.
* sysdeps/sparc/tls.h (DB_THREAD_SELF): New macro.
* sysdeps/x86_64/tls.h (DB_THREAD_SELF): New macro.
* sysdeps/alpha/td_ta_map_lwp2thr.c: File removed.
* sysdeps/generic/td_ta_map_lwp2thr.c: File removed.
* sysdeps/i386/td_ta_map_lwp2thr.c: File removed.
* sysdeps/ia64/td_ta_map_lwp2thr.c: File removed.
* sysdeps/powerpc/td_ta_map_lwp2thr.c: File removed.
* sysdeps/s390/td_ta_map_lwp2thr.c: File removed.
* sysdeps/sh/td_ta_map_lwp2thr.c: File removed.
* sysdeps/sparc/td_ta_map_lwp2thr.c: File removed.
* sysdeps/x86_64/td_ta_map_lwp2thr.c: File removed.
2003-09-09 07:00:21 +00:00
Ulrich Drepper
16fc430a76
Avoid .ent/.end.
2003-07-08 03:41:53 +00:00
Ulrich Drepper
690359671c
TLS access definitions for Alpha.
2003-07-01 19:25:45 +00:00
Ulrich Drepper
cb9d4969c9
libthread_db interface to map LWP ID to thread for Alpha.
2003-07-01 19:25:32 +00:00
Ulrich Drepper
c1b42f8052
General definition for libpthread on Alpha.
2003-07-01 19:25:02 +00:00
Ulrich Drepper
29da0ceb72
Spinlock trylock implementation for Alpha.
2003-07-01 19:24:47 +00:00
Ulrich Drepper
81b6201ae0
Spinlock implementation for Alpha.
2003-07-01 19:24:33 +00:00
Ulrich Drepper
bba28b0ec0
Initialization code for libpthread on Alpha.
2003-07-01 19:23:36 +00:00