--- gcc/config/m88k/t-dgux 2018/04/24 18:10:23 1.1.1.1 +++ gcc/config/m88k/t-dgux 2018/04/24 18:20:31 1.1.1.3 @@ -9,12 +9,15 @@ $(MOVE_ASM): $(srcdir)/config/m88k/m88k- LIB2FUNCS_EXTRA = $(MOVE_ASM) LIBGCC1 = libgcc1.null +CROSS_LIBGCC1 = libgcc1.null -# For DG/UX we build crtbegin.o and crtend.o which serve to add begin and -# end labels to the .ctors and .dtors section when we link using gcc. -# In a coff environment, a link script is required. - -EXTRA_PARTS=crtbegin.o crtend.o m88kdgux.ld - +# In a coff environment, a link script is required for ctors and dtors. m88kdgux.ld: $(srcdir)/config/m88k/dgux.ld rm -f m88kdgux.ld; cp $(srcdir)/config/m88k/dgux.ld ./m88kdgux.ld + +# A bcs crtbegin.o is needed since bcs does not +# increment the stack pointer in the init section as elf does +bcscrtbegin.o: crtstuff.c $(GCC_PASSES) $(CONFIG_H) gbl-ctors.h + $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) -DCRT_BEGIN -DBCS \ + -finhibit-size-directive -fno-inline-functions \ + -g0 -c $(srcdir)/crtstuff.c -o bcscrtbegin.o