about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/dl-sysdep.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-03-08 17:52:13 +0000
committerUlrich Drepper <drepper@redhat.com>2008-03-08 17:52:13 +0000
commit368a8dec0ae2209be167daea8034646abcba220d (patch)
treea3b5dd92e75aeb0caf10597c12ef915fb1d25e0f /sysdeps/unix/sysv/linux/dl-sysdep.c
parent7c22c7ec9a8170f3d1006ddf21d74cd9d2316332 (diff)
downloadglibc-368a8dec0ae2209be167daea8034646abcba220d.tar.gz
glibc-368a8dec0ae2209be167daea8034646abcba220d.tar.xz
glibc-368a8dec0ae2209be167daea8034646abcba220d.zip
* sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
	.o file.
	* elf/Makefile (routines): Add dl-sysdep.
	(elide-routines.os): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/dl-sysdep.c')
-rw-r--r--sysdeps/unix/sysv/linux/dl-sysdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/dl-sysdep.c b/sysdeps/unix/sysv/linux/dl-sysdep.c
index d4be205cde..08ae9aa86d 100644
--- a/sysdeps/unix/sysv/linux/dl-sysdep.c
+++ b/sysdeps/unix/sysv/linux/dl-sysdep.c
@@ -27,7 +27,8 @@
 #include <ldsodefs.h>
 #include <kernel-features.h>
 
-#define DL_SYSDEP_INIT frob_brk ()
+#ifdef SHARED
+# define DL_SYSDEP_INIT frob_brk ()
 
 static inline void
 frob_brk (void)
@@ -56,7 +57,8 @@ frob_brk (void)
 #endif
 }
 
-#include <elf/dl-sysdep.c>
+# include <elf/dl-sysdep.c>
+#endif
 
 
 int