diff options
Diffstat (limited to '')
-rw-r--r-- | make/custom/gensh1.cfg | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/make/custom/gensh1.cfg b/make/custom/gensh1.cfg index fac62e69b5..6490fe7e09 100644 --- a/make/custom/gensh1.cfg +++ b/make/custom/gensh1.cfg @@ -63,19 +63,21 @@ endef # The following are definitions of make-exe which will work using ld as # is currently required. It is expected that as of gcc 2.8, the end user # will be able to override parts of the compilers specs and link using gcc. -# -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) -lrtemsall -lc $(LD_PATHS:%=-L %) ifeq ($(RTEMS_USE_GCC272),yes) define make-exe - $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \ - -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) $(LD_PATHS:%=-L %) + $(LD) $(LDFLAGS) -N -e _start \ + -T$(PROJECT_RELEASE)/lib/linkcmds\ + -o $(basename $@).exe \ + $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group $(NM) -n $(basename $@).exe > $(basename $@).num $(SIZE) $(basename $@).exe endef else define make-exe - $(CC) -Wl,-Map,$(basename $@).map $(CFLAGS) \ - -o $(basename $@).exe $(LINK_OBJS) + $(CC) -v -Wl,-Map,$(basename $@).map \ + $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \ + $(LINK_OBJS) $(LINK_LIBS) $(NM) -n $(basename $@).exe > $(basename $@).num $(SIZE) $(basename $@).exe endef @@ -83,5 +85,3 @@ endif # Miscellaneous additions go here -# Workaround for missing ranlib support in rtems -MKLIB=$(RANLIB) |