Changeset a7c6176 in rtems


Ignore:
Timestamp:
Dec 17, 2018, 6:48:30 AM (6 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
4408603
Parents:
bac53634
git-author:
Chris Johns <chrisj@…> (12/17/18 06:48:30)
git-committer:
Chris Johns <chrisj@…> (02/08/19 23:06:34)
Message:

libtest/dl08: Add a test for archives.

  • Create 2 archives.
  • Load 1 object file which loads 6 object files from the libraries.

Updates #3686

Files:
17 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/headers.am

    rbac53634 ra7c6176  
    296296include_rtems_rtl_HEADERS += include/rtems/rtl/rtl-obj-fwd.h
    297297include_rtems_rtl_HEADERS += include/rtems/rtl/rtl-obj.h
     298include_rtems_rtl_HEADERS += include/rtems/rtl/rtl-shell.h
    298299include_rtems_rtl_HEADERS += include/rtems/rtl/rtl-sym.h
    299300include_rtems_rtl_HEADERS += include/rtems/rtl/rtl-trace.h
  • testsuites/libtests/Makefile.am

    rbac53634 ra7c6176  
    549549        @rm -f $@
    550550        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
    551 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
     551CLEANFILES += dl07.pre dl07-sym.o dl07-o1.o dl07-o2.o dl07-o3.o dl07-o4.o \
     552                dl07-o5.o dl07.tar dl07-tar.h
     553endif
     554endif
     555
     556if DLTESTS
     557if TEST_dl08
     558lib_tests += dl08
     559lib_screens += dl08/dl08.scn
     560lib_docs += dl08/dl08.doc
     561dl08_SOURCES = dl08/init.c dl08/dl-load.c dl08-tar.c dl08-tar.h
     562dl08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl08) $(support_includes)
     563dl08/init.c: dl08-tar.o
     564dl08.pre: $(dl08_OBJECTS) $(dl08_DEPENDENCIES)
     565        @rm -f dl08.pre
     566        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     567dl08-o1.o: dl08/dl-o1.c Makefile
     568        $(AM_V_CC)$(COMPILE) -c -o $@ $<
     569dl08-o2.o: dl08/dl-o2.c Makefile
     570        $(AM_V_CC)$(COMPILE) -c -o $@ $<
     571dl08-o3.o: dl08/dl-o3.c Makefile
     572        $(AM_V_CC)$(COMPILE) -c -o $@ $<
     573dl08-o4.o: dl08/dl-o4.c Makefile
     574        $(AM_V_CC)$(COMPILE) -c -o $@ $<
     575dl08-o5.o: dl08/dl-o5.c Makefile
     576        $(AM_V_CC)$(COMPILE) -c -o $@ $<
     577dl08-o6-123456789-123456789.o: dl08/dl-o6-123456789-123456789.c Makefile
     578        $(AM_V_CC)$(COMPILE) -c -o $@ $<
     579#       echo "#" > etc/rtl-libs.conf
     580#       echo "  # blah blah" >> etc/rtl-libs.conf
     581etc/rtl-libs.conf:
     582        mkdir etc; \
     583        echo "/libdl08*.a" >> etc/rtl-libs.conf
     584noinst_LIBRARIES = libdl08_1.a libdl08_2.a
     585libdl08_1_a_SOURCES = dl08-o2.c dl08-o4.c
     586libdl08_2_a_SOURCES = dl08-o3.c dl08-o5.c \
     587                        dl08-o6-123456789-123456789.c
     588dl08.tar: etc/rtl-libs.conf dl08-o1.o libdl08_1.a libdl08_2.a
     589        @rm -f $@
     590        $(AM_V_GEN)$(PAX) -w -f $@ $+
     591dl08-tar.c: dl08.tar
     592        $(AM_V_GEN)$(BIN2C) -C $< $@
     593dl08-tar.h: dl08.tar
     594        $(AM_V_GEN)$(BIN2C) -H $< $@
     595dl08-tar.o: dl08-tar.c dl08-tar.h
     596        $(AM_V_CC)$(COMPILE) -c -o $@ $<
     597dl08-sym.o: dl08.pre
     598        $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $<
     599dl08$(EXEEXT):  $(dl08_OBJECTS) $(dl08_DEPENDENCIES) dl08-sym.o
     600        @rm -f $@
     601        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     602CLEANFILES += dl08.pre dl08-sym.o libdl08_1.a libdl08_2.a dl08-o1.o dl08-o2.o \
     603                dl08-o3.o dl08-o4.o dl08-o5.o dl08-o6-123456789-123456789.o \
     604                dl08.tar dl08-tar.h etc/rtl-libs.conf
    552605endif
    553606endif
  • testsuites/libtests/configure.ac

    rbac53634 ra7c6176  
    133133RTEMS_TEST_CHECK([dl06])
    134134RTEMS_TEST_CHECK([dl07])
     135RTEMS_TEST_CHECK([dl08])
    135136RTEMS_TEST_CHECK([dumpbuf01])
    136137RTEMS_TEST_CHECK([dup2])
Note: See TracChangeset for help on using the changeset viewer.