summaryrefslogtreecommitdiff
path: root/ldso/util
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-08-19 06:05:34 +0000
committerEric Andersen <andersen@codepoet.org>2003-08-19 06:05:34 +0000
commitbca6a155c79147f706242ed7c590a3538e407a40 (patch)
tree17c7d7784edc61f3984fb3255672f3ecfe826d22 /ldso/util
parentfd47fd4039cadf42620bbfce43c3a0338e23ee26 (diff)
Phase one of my evil plan to clean up ld.so...
Diffstat (limited to 'ldso/util')
-rw-r--r--ldso/util/Makefile7
-rw-r--r--ldso/util/ldconfig.c4
2 files changed, 4 insertions, 7 deletions
diff --git a/ldso/util/Makefile b/ldso/util/Makefile
index b7712f82a..482fed3ce 100644
--- a/ldso/util/Makefile
+++ b/ldso/util/Makefile
@@ -24,7 +24,7 @@ TOPDIR=../../
include $(TOPDIR)Rules.mak
TARGET_CC = $(TOPDIR)extra/gcc-uClibc/$(TARGET_ARCH)-uclibc-gcc
-TARGETS = elf_header ldd
+TARGETS = ldd
ifeq ($(OSTYPE),linux)
TARGETS += readelf
endif
@@ -37,9 +37,6 @@ ifeq ($(strip $(LDSO_LDD_SUPPORT)),y)
XXFLAGS=-D__LDSO_LDD_SUPPORT
endif
-elf_header:
- ln -fs $(TOPDIR)include/elf.h
-
readelf: readelf.c
$(HOSTCC) $(HOSTCFLAGS) -I . readelf.c -o $@
strip -x -R .note -R .comment $@
@@ -78,5 +75,5 @@ ldd.target: ldd.c
$(STRIPTOOL) -x -R .note -R .comment $@
clean:
- rm -f $(TARGETS) *.o *~ core ./elf.h *.target
+ rm -f $(TARGETS) *.o *~ core *.target
diff --git a/ldso/util/ldconfig.c b/ldso/util/ldconfig.c
index 4660bd458..f90cb073f 100644
--- a/ldso/util/ldconfig.c
+++ b/ldso/util/ldconfig.c
@@ -37,8 +37,7 @@
#include <fcntl.h>
#include <sys/mman.h>
#include <errno.h>
-#include "elf.h"
-#include "../config.h"
+#include <ldso.h>
#include "readsoname.h"
struct exec
@@ -546,6 +545,7 @@ void usage(void)
exit(EXIT_FATAL);
}
+#define DIR_SEP ":, \t\n"
int main(int argc, char **argv)
{
int i, c;