summaryrefslogtreecommitdiffstats
path: root/Makefile.shared
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-25 15:37:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-25 15:37:52 +0000
commit57b8f819a5f189d8da327207173ac7aa1a41eea4 (patch)
tree434b72b91126371942e3a6a4c55a7800304c67f7 /Makefile.shared
parent2008-08-22 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadada-examples-57b8f819a5f189d8da327207173ac7aa1a41eea4.tar.bz2
2008-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.shared: (pc386) Make sure .exe is file to run.
Diffstat (limited to 'Makefile.shared')
-rw-r--r--Makefile.shared10
1 files changed, 2 insertions, 8 deletions
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