summaryrefslogtreecommitdiff
path: root/ldso/util
diff options
context:
space:
mode:
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;