forked from Imagelibrary/rtems
Modified objcopy invocation to ignore more sections.
This commit is contained in:
@@ -85,9 +85,13 @@ define make-exe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(CC) $(CFLAGS) $(CFLAGS_LD) -Ttext $(RELOCADDR) -o $(basename $@).obj $(LINK_OBJS)
|
||||
$(OBJCOPY) -O a.out-i386 --remove-section=.rodata --strip-unneeded \
|
||||
$(basename $@).obj $@
|
||||
$(CC) $(CFLAGS) $(CFLAGS_LD) -Wl,-Ttext -Wl,$(RELOCADDR) \
|
||||
-o $(basename $@).obj $(LINK_OBJS)
|
||||
$(OBJCOPY) -O a.out-i386 \
|
||||
--remove-section=.rodata \
|
||||
--remove-section=.comment \
|
||||
--remove-section=.note \
|
||||
--strip-unneeded $(basename $@).obj $@
|
||||
$(OBJCOPY) -O binary $(basename $@).obj $(basename $@).bin
|
||||
$(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\
|
||||
$(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
|
||||
|
||||
Reference in New Issue
Block a user