diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-25 15:37:52 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-25 15:37:52 +0000 |
commit | 57b8f819a5f189d8da327207173ac7aa1a41eea4 (patch) | |
tree | 434b72b91126371942e3a6a4c55a7800304c67f7 | |
parent | 4e6f091ab2d397a7c289928933f5204b4d8752dd (diff) |
2008-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.shared: (pc386) Make sure .exe is file to run.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Makefile.shared | 10 |
2 files changed, 6 insertions, 8 deletions
@@ -1,3 +1,7 @@ +2008-08-25 Joel Sherrill <joel.sherrill@oarcorp.com> + + * Makefile.shared: (pc386) Make sure .exe is file to run. + 2008-08-22 Joel Sherrill <joel.sherrill@oarcorp.com> * Makefile.shared: Update Makefiles. diff --git a/Makefile.shared b/Makefile.shared index 8183d9d..d080b1f 100644 --- a/Makefile.shared +++ b/Makefile.shared @@ -49,7 +49,7 @@ joel: $(CC) -mcpu=403 -print-multi-directory $(PROGRAM).exe: rtems_init.o $(FILESYSTEM_OBJS) $(EXTRA_OBJS) - $(AS:as=gnatmake) -v $(EXTRA_GNATFLAGS) \ + $(AS:as=gnatmake) -g -v $(EXTRA_GNATFLAGS) \ -I$(RTEMS_MAKEFILE_PATH)/lib/include/adainclude \ -O -gnata -gnatE -gnato -g $(PROGRAM) -o $(@) \ -bargs -Mgnat_main \ @@ -57,13 +57,7 @@ $(PROGRAM).exe: rtems_init.o $(FILESYSTEM_OBJS) $(EXTRA_OBJS) rtems_init.o $(FILESYSTEM_OBJS) \ $(EXTRA_OBJS) ifeq ($(RTEMS_BSP_FAMILY),pc386) - mv $(@) $(@).obj - $(OBJCOPY) -O elf32-i386 \ - --remove-section=.rodata \ - --remove-section=.comment \ - --remove-section=.note \ - --strip-unneeded $(@).obj $(@) - $(OBJCOPY) -O binary $(@).obj $(@).bin + $(OBJCOPY) -O binary $(@) $(@).bin $(RTEMS_MAKEFILE_PATH)/build-tools/bin2boot -v $(@).bt $(HEADERADDR) \ $(START16FILE) $(START16ADDR) 0 $(@).bin $(RELOCADDR) 0 endif |