[En-Nut-Discussion] app/Makerules.avr-gcc: Only use .text for ihex, rom and bin target
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Thu Feb 5 16:04:58 CET 2009
Hello,
shouldn't the "hex", "rom" and "bin" targets only emit the .text section? At
least on the AVR, the .data section can not be programmed. The additional
data produces bigger files and may confuse programmers.
Probably target "rom" should produce srec, as sent in another mail.
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: app/Makerules.avr-gcc
===================================================================
RCS file: /cvsroot/ethernut/nut/app/Makerules.avr-gcc,v
retrieving revision 1.3
diff -u -w -r1.3 Makerules.avr-gcc
--- app/Makerules.avr-gcc 1 Mar 2006 02:11:44 -0000 1.3
+++ app/Makerules.avr-gcc 5 Feb 2009 14:45:37 -0000
@@ -53,13 +53,13 @@
$(ELFCOF) -O coff-ext-avr $< $@
%hex: %elf
- $(BIN) -R .eeprom -O ihex $< $@
+ $(BIN) -j .text -O ihex $< $@
%rom: %elf
- $(BIN) -O ihex $< $@
+ $(BIN) -j .text -O ihex $< $@
%bin: %elf
- $(BIN) -O binary $< $@
+ $(BIN) -j .text -O binary $< $@
%eep: %elf
$(BIN) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O ihex $< $@
More information about the En-Nut-Discussion
mailing list