summary refs log tree commit diff
path: root/debug/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-16 20:08:44 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-16 20:08:44 +0000
commit107f81314155383ab9c0625f3d157be55131f837 (patch)
tree8269ce62db3039a86c13b0c090691081fbf8797c /debug/Makefile
parent7a2fd787a7aa4de58b9e3db5fe996f5ea89a3180 (diff)
downloadglibc-107f81314155383ab9c0625f3d157be55131f837.tar.gz
glibc-107f81314155383ab9c0625f3d157be55131f837.tar.xz
glibc-107f81314155383ab9c0625f3d157be55131f837.zip
Update.
1998-07-16 20:01  Ulrich Drepper  <drepper@cygnus.com>

	* debug/Makefile (routines): Add backtracesymsfd.
	Add rules to generate libSegFault.
	* debug/Versions: Add __backtrace_symbols_fd and backtrace_symbols_fd.
	* debug/execinfo.h: Declare backtrace_symbols_fd.
	* sysdeps/generic/backtracesymsfd.c: New file.
	* sysdeps/generic/elf/backtracesymsfd.c: New file.
	* sysdeps/generic/segfault.c: New file.
	* sysdeps/generic/sigcontextinfo.h: New file.
	* sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: New file.

	* sysdeps/generic/elf/backtracesyms.c: Remove unneeded +.
Diffstat (limited to 'debug/Makefile')
-rw-r--r--debug/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/debug/Makefile b/debug/Makefile
index 5286cc15fd..3ee7a9f94d 100644
--- a/debug/Makefile
+++ b/debug/Makefile
@@ -23,10 +23,21 @@ subdir	:= debug
 
 headers	:= execinfo.h
 
-routines := backtrace backtracesyms
+routines := backtrace backtracesyms backtracesymsfd
 
 CFLAGS-backtrace.c = -fno-omit-frame-pointer
 
 tests = backtrace-tst
 
+extra-libs	= libSegFault
+extra-libs-others = $(extra-libs)
+
+libSegFault-routines = segfault
+libSegFault-inhibit-o = $(filter-out .os,$(object-suffixes))
+
 include ../Rules
+
+# 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)libSegFault.so: $(common-objpfx)libc.so $(common-objpfx)elf/ld.so