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

            Bug ID: 20849
           Summary: [avr][avr_tiny] Don't put .rodata in RAM.
           Product: binutils
           Version: 2.27
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: gjl at gcc dot gnu.org
  Target Milestone: ---

The current linker description files for AVR_TINY like avrtiny.x et al are
locating .rodata into SRAM which is quite a waste for devices with up to 128
Bytes of SRAM.

As flash is accessible by LD instructions which read from RAM (provided an
offset of 0x4000 is added), a better approach is just to add 0x4000 to the VMA
of .rodata objects.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to