avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #26995] .fuses and .bss overlap on the elf file


From: Renato Caldas
Subject: [avr-libc-dev] [bug #26995] .fuses and .bss overlap on the elf file
Date: Thu, 09 Jul 2009 21:06:55 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en; rv:1.9.0.11) Gecko/20080528 Epiphany/2.22 Firefox/3.0

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]