bugAVR C Runtime Library - Bugs: bug #26995, .fuses and .bss overlap on the elf...

 
 

bug #26995: .fuses and .bss overlap on the elf file

Submitted by:  Renato Caldas <seventhguardian>
Submitted on:  Thu 09 Jul 2009 09:06:53 PM UTC  
 
Category: LibrarySeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Works For MePercent Complete: 0%
Assigned to: NoneOpen/Closed: Closed
Release: 1.6.4Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 09 Jun 2010 09:42:47 AM UTC, comment #2:

I have just resurected my old code, and now it works perfectly. Probably some old bug that got fixed.

Thanks for looking into this, I believe this report can be safely closed.

Renato Caldas <seventhguardian>
Wed 09 Jun 2010 09:26:07 AM UTC, comment #1:

Not confirmed:

Please provide a full example that can reproduce the bug.

Btw., the location of your -lm option on the command-line makes it
have zero effect to the linker.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Thu 09 Jul 2009 09:06:53 PM UTC, original submission:

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.

Renato Caldas <seventhguardian>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by seventhguardian (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 09 Jun 2010 09:48:00 AM UTCjoerg_wunschStatusNeed Info=>Works For Me
      Open/ClosedOpen=>Closed
    Wed 09 Jun 2010 09:26:07 AM UTCjoerg_wunschStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1