From a7f7b879fbe6fb58b670ad41d2b6e40f14730cb8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 5 Jan 2003 10:21:08 +0000 Subject: [PATCH] Update. 2003-01-04 Jakub Jelinek * internals.h (LIBC_THREAD_GETMEM, LIBC_THREAD_SETMEM): Define even if NOT_IN_libc is defined. --- Makerules | 5 +++-- dlfcn/Makefile | 5 +++-- linuxthreads/ChangeLog | 5 +++++ linuxthreads/internals.h | 14 ++++++-------- linuxthreads_db/Makefile | 5 ++++- nptl_db/Makefile | 5 ++++- rt/Makefile | 5 +++-- 7 files changed, 28 insertions(+), 16 deletions(-) diff --git a/Makerules b/Makerules index ce208d3..dca6d0e 100644 --- a/Makerules +++ b/Makerules @@ -1,4 +1,4 @@ -# Copyright (C) 1991-1999,2000,01,02 Free Software Foundation, Inc. +# Copyright (C) 1991-2002, 2003 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -459,7 +459,8 @@ endif ifeq ($(elf),yes) define build-shlib-helper -$(LINK.o) -shared $(static-libgcc) -Wl,-O1 $(sysdep-LDFLAGS) $(config-LDFLAGS) \ +$(LINK.o) -shared $(static-libgcc) -Wl,-O1 $(sysdep-LDFLAGS) \ + $(if $($(@F)-no-z-defs),,-Wl,-z,defs) $(config-LDFLAGS) \ $(extra-B-$(@F:lib%.so=%).so) -B$(csu-objpfx) \ $(extra-B-$(@F:lib%.so=%).so) $(load-map-file) \ -Wl,-soname=lib$(libprefix)$(@F:lib%.so=%).so$($(@F)-version) \ diff --git a/dlfcn/Makefile b/dlfcn/Makefile index 33f6e92..40eb788 100644 --- a/dlfcn/Makefile +++ b/dlfcn/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1995-1999, 2000, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1995-2002, 2003 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -113,4 +113,5 @@ $(objpfx)bug-dlsym1-lib2.so: $(common-objpfx)libc.so \ # Depend on libc.so so a DT_NEEDED is generated in the shared objects. # This ensures they will load libc.so for needed symbols if loaded by # a statically-linked program that hasn't already loaded it. -$(objpfx)libdl.so: $(common-objpfx)libc.so $(common-objpfx)libc_nonshared.a +$(objpfx)libdl.so: $(common-objpfx)libc.so $(common-objpfx)libc_nonshared.a \ + $(if $(filter yes,$(elf)), $(elfobjdir)/ld.so) diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index f7440a5..f7a01f4 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +2003-01-04 Jakub Jelinek + + * internals.h (LIBC_THREAD_GETMEM, LIBC_THREAD_SETMEM): Define + even if NOT_IN_libc is defined. + 2003-01-05 Jakub Jelinek * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file. diff --git a/linuxthreads/internals.h b/linuxthreads/internals.h index 6241e93..f4c7653 100644 --- a/linuxthreads/internals.h +++ b/linuxthreads/internals.h @@ -43,15 +43,13 @@ # define THREAD_SETMEM_NC(descr, member, value) descr->member = (value) #endif -#ifndef NOT_IN_libc -# ifdef FLOATING_STACKS -# define LIBC_THREAD_GETMEM(descr, member) THREAD_GETMEM (descr, member) -# define LIBC_THREAD_SETMEM(descr, member, value) \ +#if !defined NOT_IN_libc && defined FLOATING_STACKS +# define LIBC_THREAD_GETMEM(descr, member) THREAD_GETMEM (descr, member) +# define LIBC_THREAD_SETMEM(descr, member, value) \ THREAD_SETMEM (descr, member, value) -# else -# define LIBC_THREAD_GETMEM(descr, member) descr->member -# define LIBC_THREAD_SETMEM(descr, member, value) descr->member = (value) -# endif +#else +# define LIBC_THREAD_GETMEM(descr, member) descr->member +# define LIBC_THREAD_SETMEM(descr, member, value) descr->member = (value) #endif typedef void (*destr_function)(void *); diff --git a/linuxthreads_db/Makefile b/linuxthreads_db/Makefile index 30eba9f..1265a78 100644 --- a/linuxthreads_db/Makefile +++ b/linuxthreads_db/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -43,6 +43,9 @@ libthread_db-routines = td_init td_log td_ta_delete td_ta_get_nthreads \ libthread_db-inhibit-o = $(filter-out .os,$(object-suffixes)) +# The ps_* callback functions are not defined. +libthread_db.so-no-z-defs = yes + distribute = thread_dbP.h shlib-versions proc_service.h include ../Rules diff --git a/nptl_db/Makefile b/nptl_db/Makefile index 4812cd2..4e6d1ea 100644 --- a/nptl_db/Makefile +++ b/nptl_db/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 2002 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -47,6 +47,9 @@ libthread_db-routines = td_init td_log td_ta_new td_ta_delete \ libthread_db-inhibit-o = $(filter-out .os,$(object-suffixes)) +# The ps_* callback functions are not defined. +libthread_db.so-no-z-defs = yes + distribute = thread_dbP.h shlib-versions proc_service.h include ../Rules diff --git a/rt/Makefile b/rt/Makefile index 5ac4dd4..712b1a9 100644 --- a/rt/Makefile +++ b/rt/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1997-2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1997-2001, 2002, 2003 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -53,7 +53,8 @@ include ../Rules # This ensures they will load libc.so for needed symbols if loaded by # a statically-linked program that hasn't already loaded it. $(objpfx)librt.so: $(common-objpfx)libc.so $(common-objpfx)libc_nonshared.a \ - $(shared-thread-library) + $(shared-thread-library) \ + $(if $(filter yes,$(elf)), $(elfobjdir)/ld.so) ifeq (yes,$(build-shared)) $(addprefix $(objpfx),$(tests)): $(objpfx)librt.so $(shared-thread-library) -- 2.7.4