[patch,avr] PR31687

Nick Clifton nickc@redhat.com
Mon May 20 12:34:59 GMT 2024


Hi Georg-Johann,

> AVR: binutils/31687 - Include .rodata size in avr-objdump -P mem-usage.
> 
> AVR emulations with a .rodata output section were missing the
> size of that section in  avr-objdump -P mem-usage.  These are
> the emulations that keep .rodata in program memory, which can
> be supported by devices that see (a part of) the program memory
> in the RAM address space.
> 
> The patch also introduces a code clean-up related to PR 27283,
> which was about broken binaries that lead to overflow / UB in
> size computation.  The section size is now just truncated or
> saturated, alongside with a diagnostic about the truncation and
> *which* section length is being truncated.
> 
> binutils/
>          PR binutils/31687
>          * od-elf32_avr.c (elf32_avr_get_truncated_size): New static function.
>          (elf32_avr_get_memory_usage): Use it to get (truncated) section sizes.

Approved and applied.

Cheers
   Nick



More information about the Binutils mailing list