[rtems-libbsd commit] link01 - Add list of undefined symbols

Joel Sherrill joel at rtems.org
Thu Apr 5 13:22:37 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    a7926648dbc43150cdf0a4214783201b8b851d5a
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=a7926648dbc43150cdf0a4214783201b8b851d5a

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Thu Apr  5 08:24:45 2012 -0500

link01 - Add list of undefined symbols

---

 testsuite/link01/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/testsuite/link01/Makefile b/testsuite/link01/Makefile
index ea42c23..dd9e8e3 100644
--- a/testsuite/link01/Makefile
+++ b/testsuite/link01/Makefile
@@ -14,7 +14,7 @@ C_FILES = test.c
 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
 
 AM_CPPFLAGS += -I $(INSTALL_BASE)/include
-LINK_LIBS += $(INSTALL_BASE)/libbsd.a -Wl,-Map=jennifer.txt
+LINK_LIBS += $(INSTALL_BASE)/libbsd.a -Wl,-r
 
 include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
 include $(RTEMS_CUSTOM)
@@ -26,3 +26,6 @@ all:    ${ARCH} $(PGM)
 
 $(PGM): $(OBJS)
 	$(make-exe)
+	$(NM) $(PGM) | grep "U " >undefined.txt
+	@echo `cat undefined.txt | wc -l` symbols to resolve
+	@test `cat undefined.txt | wc -l` -ne 0 && exit 1




More information about the vc mailing list