aboutsummaryrefslogtreecommitdiff
path: root/nptl/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-21 22:35:01 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-21 22:35:01 +0200
commit49e182c7376b0fa30c18d0b7003a8e84624494c0 (patch)
tree0072f8841d2e08f644a7f69659773425054df997 /nptl/Makefile
parentf47f1d91af985a9028fb399da21eab460d887a15 (diff)
downloadglibc-49e182c7376b0fa30c18d0b7003a8e84624494c0.zip
glibc-49e182c7376b0fa30c18d0b7003a8e84624494c0.tar.gz
glibc-49e182c7376b0fa30c18d0b7003a8e84624494c0.tar.bz2
nptl: Remove remaining code from libpthread
Only the placeholder compatibility symbols are left now. The __errno_location symbol was removed (moved) using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/Makefile')
-rw-r--r--nptl/Makefile46
1 files changed, 3 insertions, 43 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index a6e3b61..64cd0dc 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -207,16 +207,8 @@ routines = \
shared-only-routines = forward
static-only-routines = pthread_atfork
-libpthread-routines = \
- libpthread-compat \
- nptl-init \
- pt-interp \
- version \
-
-libpthread-shared-only-routines = \
- pt-allocrtsig \
- pt-interp \
- version \
+libpthread-routines = libpthread-compat
+libpthread-shared-only-routines = libpthread-compat
# Since cancellation handling is in large parts handled using exceptions
# we have to compile some files with exception handling enabled, some
@@ -382,7 +374,7 @@ else
tests-printers-libs := $(static-thread-library)
endif
-LDFLAGS-pthread.so = -Wl,--enable-new-dtags,-z,nodelete,-z,initfirst
+LDFLAGS-pthread.so = -Wl,--enable-new-dtags,-z,nodelete
tests += tst-cancelx7 tst-cancelx17
@@ -432,17 +424,6 @@ $(objpfx)multidir.mk: $(common-objpfx)config.make
echo "multidir := $$dir" > $@T
mv -f $@T $@
-crti-objs := crti.o
-crtn-objs := crtn.o
-ifneq (,$(patsubst .,,$(multidir)))
-generated-dirs += $(firstword $(subst /, , $(multidir)))
-crti-objs += $(multidir)/crti.o
-crtn-objs += $(multidir)/crtn.o
-$(objpfx)$(multidir):
- mkdir -p $@
-endif
-extra-objs += $(crti-objs) $(crtn-objs)
-extra-objs += pt-crti.o
endif
CFLAGS-ftrylockfile.c += $(libio-mtsafe)
@@ -577,11 +558,6 @@ $(objpfx)tst-cancelx17: $(librt)
LDLIBS-tst-cancel24 = -Wl,--no-as-needed -lstdc++
LDLIBS-tst-cancel24-static = $(LDLIBS-tst-cancel24)
-extra-B-pthread.so = -B$(common-objpfx)nptl/
-$(objpfx)libpthread.so: $(addprefix $(objpfx),$(crti-objs) $(crtn-objs))
-$(objpfx)libpthread.so: +preinit += $(addprefix $(objpfx),$(crti-objs))
-$(objpfx)libpthread.so: +postinit += $(addprefix $(objpfx),$(crtn-objs))
-
# Make sure we link with the thread library.
ifeq ($(build-shared),yes)
$(addprefix $(objpfx), \
@@ -601,23 +577,7 @@ $(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.a
endif
ifeq ($(build-shared),yes)
-$(objpfx)crti.o: $(objpfx)pt-crti.o
- ln -f $< $@
-
-ifneq ($(multidir),.)
-$(objpfx)$(multidir)/crti.o: $(objpfx)crti.o $(objpfx)$(multidir)/
- ln -f $< $@
-
-$(objpfx)$(multidir)/crtn.o: $(objpfx)crtn.o $(objpfx)$(multidir)/
- ln -f $< $@
-endif
-
generated += multidir.mk tst-tls6.out
-
-# Give libpthread.so an entry point and make it directly runnable itself.
-LDFLAGS-pthread.so += -e __nptl_main
-# pt-interp.c exists just to get the runtime linker path into libpthread.so.
-$(objpfx)pt-interp.os: $(common-objpfx)runtime-linker.h
endif
tst-exec4-ARGS = $(host-test-program-cmd)