[patch, avr] PR31124: Support rodata in flash for more AVR devices

Nick Clifton nickc@redhat.com
Mon Dec 11 15:41:21 GMT 2023


Hi Johann,

> This patch adds two new emulations in order to support rodata in
> flash for more devices.

Patch approved - please apply.  (Or let me know and I will apply it for you).

> What I am unsure about 

Err - didn't you write this patch ?

> is the ABSOLUTE in avrxmega2_flmap.x:
> 
>    .rodata  __rodata_start   :  AT (__rodata_load_start)
>    {
>      ...
>       __rodata_end = ABSOLUTE(.) ;
>    }  > rodata
> 
> No other places in the ld scripts use ABSOLUTE, e.g. for __data_end in:
> 
>    .data :
>    {
>       ...
>       PROVIDE (__data_end = .) ;
>    }  > data AT> text

The difference is, presumably, that the symbols are going to be used
in different ways.  The __data_end symbol, for example is more like a
size-of-the-data-section symbol whereas the __rodata_end symbol is more
of a no-more-read-only-data-after-this-address kind of symbol.

Cheers
   Nick



More information about the Binutils mailing list