forked from Imagelibrary/rtems
Replace .coff with .elf.
This commit is contained in:
@@ -28,20 +28,20 @@ CFLAGS_OPTIMIZE_V=-O4
|
|||||||
#
|
#
|
||||||
# This is a good way to get debug information. The rdmp file is large
|
# This is a good way to get debug information. The rdmp file is large
|
||||||
# though (1.9 Mb for hello) and greatly slows the build process.
|
# though (1.9 Mb for hello) and greatly slows the build process.
|
||||||
# $(OBJDUMP) -x -m i386 -d $(basename $@).coff > $(basename $@).rdmp
|
# $(OBJDUMP) -x -m i386 -d $(basename $@).elf > $(basename $@).rdmp
|
||||||
|
|
||||||
# The following are definitions of make-exe which will work using ld as
|
# 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
|
# 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.
|
# will be able to override parts of the compilers specs and link using gcc.
|
||||||
|
|
||||||
define make-exe
|
define make-exe
|
||||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).coff \
|
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).elf \
|
||||||
$(LINK_OBJS) $(LINK_LIBS)
|
$(LINK_OBJS) $(LINK_LIBS)
|
||||||
$(OBJCOPY) -O srec $(basename $@).coff $(basename $@).i
|
$(OBJCOPY) -O srec $(basename $@).elf $(basename $@).i
|
||||||
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
|
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
|
||||||
$(PACKHEX) > $(basename $@).exe
|
$(PACKHEX) > $(basename $@).exe
|
||||||
$(NM) -g -n $(basename $@).coff > $(basename $@).num
|
$(NM) -g -n $(basename $@).elf > $(basename $@).num
|
||||||
$(SIZE) $(basename $@).coff
|
$(SIZE) $(basename $@).elf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Miscellaneous additions go here
|
# Miscellaneous additions go here
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ CFLAGS_OPTIMIZE_V= -O4
|
|||||||
#
|
#
|
||||||
# This is a good way to get debug information. The rdmp file is large
|
# This is a good way to get debug information. The rdmp file is large
|
||||||
# though (1.9 Mb for hello) and greatly slows the build process.
|
# though (1.9 Mb for hello) and greatly slows the build process.
|
||||||
# $(OBJDUMP) -x -m i386 -d $(basename $@).coff > $(basename $@).rdmp
|
# $(OBJDUMP) -x -m i386 -d $(basename $@).elf > $(basename $@).rdmp
|
||||||
|
|
||||||
define make-exe
|
define make-exe
|
||||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).elf \
|
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).elf \
|
||||||
|
|||||||
Reference in New Issue
Block a user