summaryrefslogtreecommitdiff
path: root/ldso/util/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-07-11 01:28:18 +0000
committerEric Andersen <andersen@codepoet.org>2001-07-11 01:28:18 +0000
commitb5675ab467771c01084f78ae48fb510acc9c7e1a (patch)
treef37049ff77c27a55fb3b2866b3987256e18a770f /ldso/util/Makefile
parent1b2d16f45f8a2b1d90200d3c81691731c6b5fb52 (diff)
Rewrite of ldd so it works as expected, and does not invoke the
shared lib loader at all. This will allow us to throw out the support code for that from ld-linux.so.0 -Erik
Diffstat (limited to 'ldso/util/Makefile')
-rw-r--r--ldso/util/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/ldso/util/Makefile b/ldso/util/Makefile
index dd69c9b10..646fd69b6 100644
--- a/ldso/util/Makefile
+++ b/ldso/util/Makefile
@@ -6,24 +6,25 @@ all: ldconfig ldd readelf
readsoname.o: readsoname.c readsoname2.c
$(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
-
+
ldconfig.o: ldconfig.c
- $(TARGET_CC) $(TARGET_CFLAGS) -DUCLIBC_ROOT_DIR=\"$(ROOT_DIR)\" -c $< -o $@
- $(STRIPTOOL) -x -R .note -R .comment $*.o
-
-ldd.o: ldd.c
- $(TARGET_CC) $(TARGET_CFLAGS) -DUCLIBC_ROOT_DIR=\"$(ROOT_DIR)\" \
- -DLDSO_ADDR="0x62f00020" -c $< -o $@
+ $(TARGET_CC) $(TARGET_CFLAGS) -DUCLIBC_ROOT_DIR=\"$(ROOT_DIR)\" \
+ -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
readelf: readelf.c
$(TARGET_CC) $(TARGET_CFLAGS) -static readelf.c -o $@
+ $(STRIPTOOL) -x -R .note -R .comment $@
ldconfig: ldconfig.o readsoname.o
$(TARGET_CC) $(TARGET_CFLAGS) -static $^ -o $@
+ $(STRIPTOOL) -x -R .note -R .comment $@
-ldd: ldd.o readsoname.o
- $(TARGET_CC) $(TARGET_CFLAGS) -static $^ -o $@
+ldd: ldd.c
+ $(TARGET_CC) $(TARGET_CFLAGS) -DUCLIBC_ROOT_DIR=\"$(ROOT_DIR)\" \
+ -DUCLIBC_BUILD_DIR=\"$(shell cd $(TOPDIR); pwd)\" \
+ -static ldd.c -o $@
+ $(STRIPTOOL) -x -R .note -R .comment $@
clean:
rm -f ldconfig ldd readelf *.o *~ core