https://sourceware.org/bugzilla/show_bug.cgi?id=34137

            Bug ID: 34137
           Summary: avr-size shows .eeprom as part of .data
           Product: binutils
           Version: 2.45
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: gjl at gcc dot gnu.org
  Target Milestone: ---

__attribute__((__section__(".eeprom")))
long ee_data;

int main ()
{
    return 0;
}

> avr-gcc x.c -o x.elf -mmcu=atmega8 && avr-size x.elf

   text    data     bss     dec     hex filename
     78       4       0      82      52 x.elf

IMO objects in .eeprom should not be displayed as part of .data.  For example,
object in .data contribute to flash consumption, whereas .eeprom doesn't.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to