So the error I get without the patch is this:
avr-gcc -o softusb-input.elf -mmcu=avr2 -mno-interrupts -Wall -Os crt0.S
main.c debug.c crc.c libc.c -nostdlib -Wl,-T -Wl,navre.ld
/usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/../../../../avr/bin/ld:
section .bss [00000000 -> 0000000f] overlaps section .text [00000000 ->
00000ef1]
make: *** [softusb-input.elf] Error 1
Could there be something wrong with my avr configuration (like are there
different AVR chips with combined data and text? The package I'm using
is something I found precompiled for OS X.
JP
On 8/9/11 5:14 AM, Sebastien Bourdeauducq wrote:
On Mon, 2011-08-08 at 15:49 -0700, JP wrote:
- .bss : AT (ADDR (.bss))
+ .bss : AT (ADDR (.text) + SIZEOF (.text) + SIZEOF (.data))
I don't think this is correct. With the AVR architecture, there are
separate memories for code and data. Even though e.g. the .text and .bss
sections may both start at address 0, there is no conflict between them
because each resides in its own memory. Your proposed change merely
wastes the first bytes of the data memory.
S.
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode
Twitter: www.twitter.com/milkymistvj
Ideas? http://milkymist.uservoice.com
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode
Twitter: www.twitter.com/milkymistvj
Ideas? http://milkymist.uservoice.com