URL: <http://savannah.nongnu.org/bugs/?26995>
Summary: .fuses and .bss overlap on the elf file Project: AVR C Runtime Library Submitted by: seventhguardian Submitted on: Thu Jul 9 21:06:53 2009 Category: Library Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Percent Complete: 0% Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 1.6.4 Fixed Release: None _______________________________________________________ Details: It is apparently not possible to include both the fuses and global variables in the same elf file. When using something like: FUSES = { .low = LFUSE_DEFAULT, .high = HFUSE_DEFAULT, .extended = EFUSE_DEFAULT }; and global variables I get this linker error: avr-gcc -Os -Wall -std=c99 -mcall-prologues -mmcu=atmega168 -I. -L/usr/lib/binutils/avr/2.18/ -Wl,-Map,mcrt.map -lm mcrt.o -o mcrt.elf /usr/libexec/gcc/avr/ld: section .bss [0000000000000580 -> 0000000000000588] overlaps section .fuse [0000000000000580 -> 0000000000000582] /usr/libexec/gcc/avr/ld: mcrt.elf: section .bss lma 0x580 overlaps previous sections make: *** [mcrt.elf] Error 1 I've reproduced this with other targets like the attiny2313, so it should not be device-specific. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?26995> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev