From 54f440d311c48e0aae2635ba8610d5b0b8eca157 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 26 Jul 1999 22:11:02 +0000 Subject: Patch from Charles-Antoine Gauthier . to address m68k-rtemself for the MVME167. Here is the rtems patch I promissed you a long time ago to enable ELF with m68k. The target name I selected is m68k-rtemself. It preserves the m68k-rtems COFF target, and is parterned after the other ELF/COFF dual targets. The mvme167.cfg file causes the -qelf flag to be used during compilation if the name of the compiler contains rtemself. This flag is used in the bsp_specs file to select the elflinkcmds file rather than the linkcmds file. The former is for ELF, the latter for COFF. Some patches are required to the mc68040 FPSP code. Some of the assembler files contain instructions that were rejected by the m68k-rtemself-as assembler. This is a minor bug in the m68k ELF assembler, I think. --- c/src/lib/libbsp/m68k/mvme167/startup/Makefile.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libbsp/m68k/mvme167/startup') diff --git a/c/src/lib/libbsp/m68k/mvme167/startup/Makefile.in b/c/src/lib/libbsp/m68k/mvme167/startup/Makefile.in index b4ef9002e8..78a2bdae79 100644 --- a/c/src/lib/libbsp/m68k/mvme167/startup/Makefile.in +++ b/c/src/lib/libbsp/m68k/mvme167/startup/Makefile.in @@ -23,7 +23,7 @@ C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) H_FILES = -SRCS = $(srcdir)/linkcmds $(C_FILES) $(H_FILES) +SRCS = $(srcdir)/linkcmds $(srcdir)/elflinkcmds $(C_FILES) $(H_FILES) OBJS = $(C_O_FILES) include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg @@ -41,7 +41,9 @@ $(INSTALLDIRS): # (OPTIONAL) Add local stuff here using += # -DEFINES += +# USE_INIT_FINI tells main.c what C++ help we need. + +DEFINES += -DUSE_INIT_FINI CPPFLAGS += CFLAGS += @@ -64,6 +66,7 @@ ${PGM}: ${SRCS} ${OBJS} all: ${ARCH} $(SRCS) $(PGM) $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib + $(INSTALL_CHANGE) $(srcdir)/elflinkcmds $(PROJECT_RELEASE)/lib Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ -- cgit v1.2.3