diff options
author | Chris Johns <chrisj@rtems.org> | 2018-11-20 14:56:11 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-11-22 12:43:31 +1100 |
commit | 03139d5b1cf95d5b2f699e8f56e1f0ba2d7f89e4 (patch) | |
tree | 33fd489eac7497cdebe61560bc43e613b3eef0a9 /testsuites/libtests/Makefile.am | |
parent | libdl: Reindex unresolved names after removing used records. (diff) | |
download | rtems-03139d5b1cf95d5b2f699e8f56e1f0ba2d7f89e4.tar.bz2 |
libdl: Add object file dependencies to track references
Tracking references lets us manage when an object file can be
unloaded. If an object file has references to it, it cannot be
unloaded.
Modules that depend on each other cannot be unloaded.
Updates #3605
Diffstat (limited to 'testsuites/libtests/Makefile.am')
-rw-r--r-- | testsuites/libtests/Makefile.am | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/testsuites/libtests/Makefile.am b/testsuites/libtests/Makefile.am index 9e3d2143d6..810f65db8e 100644 --- a/testsuites/libtests/Makefile.am +++ b/testsuites/libtests/Makefile.am @@ -512,6 +512,45 @@ CLEANFILES += dl06.pre dl06-sym.o dl06-o1.o dl06-o2.o dl06.tar dl06-tar.h endif endif +if DLTESTS +if TEST_dl07 +lib_tests += dl07 +lib_screens += dl07/dl07.scn +lib_docs += dl07/dl07.doc +dl07_SOURCES = dl07/init.c dl07/dl-load.c dl07-tar.c dl07-tar.h +dl07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl07) $(support_includes) +dl07/init.c: dl07-tar.o +dl07.pre: $(dl07_OBJECTS) $(dl07_DEPENDENCIES) + @rm -f dl07.pre + $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ +dl07-o1.o: dl07/dl-o1.c Makefile + $(AM_V_CC)$(COMPILE) -c -o $@ $< +dl07-o2.o: dl07/dl-o2.c Makefile + $(AM_V_CC)$(COMPILE) -c -o $@ $< +dl07-o3.o: dl07/dl-o3.c Makefile + $(AM_V_CC)$(COMPILE) -c -o $@ $< +dl07-o4.o: dl07/dl-o4.c Makefile + $(AM_V_CC)$(COMPILE) -c -o $@ $< +dl07-o5.o: dl07/dl-o5.c Makefile + $(AM_V_CC)$(COMPILE) -c -o $@ $< +dl07.tar: dl07-o1.o dl07-o2.o dl07-o3.o dl07-o4.o dl07-o5.o + @rm -f $@ + $(AM_V_GEN)$(PAX) -w -f $@ $+ +dl07-tar.c: dl07.tar + $(AM_V_GEN)$(BIN2C) -C $< $@ +dl07-tar.h: dl07.tar + $(AM_V_GEN)$(BIN2C) -H $< $@ +dl07-tar.o: dl07-tar.c dl07-tar.h + $(AM_V_CC)$(COMPILE) -c -o $@ $< +dl07-sym.o: dl07.pre + $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $< +dl07$(EXEEXT): $(dl07_OBJECTS) $(dl07_DEPENDENCIES) dl07-sym.o + @rm -f $@ + $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ +CLEANFILES += dl07.pre dl07-sym.o dl07-o1.o dl07-o2.o dl07-o3.o dl07-o4.o dl07-o5.o dl07.tar dl07-tar.h +endif +endif + if TEST_dumpbuf01 lib_tests += dumpbuf01 lib_screens += dumpbuf01/dumpbuf01.scn @@ -1358,4 +1397,3 @@ endif rtems_tests_PROGRAMS = $(lib_tests) dist_rtems_tests_DATA = $(lib_screens) $(lib_docs) - |