Andy Warner <an...@pobox.com> wrote: > I think this is the linker complaining that you're jamming text and > data into the same section.
Correct. It would spit out similar complaints if you tried to abuse ..text in place of .progmem. The reason why it works `out of the box' for .progmem is that the default linker scripts already handle this section name. The correct way would be to use two different (input) linker sections, like .test1.text and .test1.data, and combine these into a single output section in the linker script (as Eric already suggested). That way, you could also place the required ALIGN(2) directive after placing the .test1.data part (see the default linker script, and how it handles .progmem). (Btw., Robert, please reply to an existing message rather than starting a new thread for each followup.) -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list