diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-30 16:45:08 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-30 16:45:08 +0000 |
commit | 5f92a6a38c15af8732fdd30e4f0f9103d5707764 (patch) | |
tree | a3da1040f846c79fe634297852f9bc642a8628cf /make | |
parent | botched file -- removed from repository and readded (diff) | |
download | rtems-5f92a6a38c15af8732fdd30e4f0f9103d5707764.tar.bz2 |
Modified objcopy invocation to ignore more sections.
Diffstat (limited to 'make')
-rw-r--r-- | make/custom/pc386.cfg | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/make/custom/pc386.cfg b/make/custom/pc386.cfg index e642a8baf9..8879e165b4 100644 --- a/make/custom/pc386.cfg +++ b/make/custom/pc386.cfg @@ -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 |