[Bug binutils/31704] New: [avr] Support avr-objdump -P avr-deviceinfo

2024-05-06 Thread gjl at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31704

Bug ID: 31704
   Summary: [avr] Support avr-objdump -P avr-deviceinfo
   Product: binutils
   Version: 2.42
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: gjl at gcc dot gnu.org
  Target Milestone: ---

The startup code from AVR-LibC contains a .note.gnu.avr.deviceinfo section that
contains properties of the AVR device for which it has been compiled.  It would
be a nice extension to be able to display that information with, say,

avr-objdump -P avr-deviceinfo file.elf

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


[Bug binutils/31687] [avr] Output of avr-objdump -P mem-usage missing .rodata

2024-05-06 Thread gjl at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31687

--- Comment #2 from Georg-Johann Lay  ---
Created attachment 15494
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15494=edit
Test case for AVR128DA32

$ avr-objdump -h avr128da32.elf 

avr128da32.elf: file format elf32-avr

Sections:
Idx Name  Size  VMA   LMA   File off  Algn
  0 .data   00804000  00d2  0166  2**0
  CONTENTS, ALLOC, LOAD, DATA
  1 .text 00d2      0094  2**1
  CONTENTS, ALLOC, LOAD, READONLY, CODE
  2 .rodata   000a  00a08000  00018000  0166  2**0
  CONTENTS, ALLOC, LOAD, READONLY, DATA

$ avr-objdump -P mem-usage avr128da32.elf 

avr128da32.elf: file format elf32-avr
AVR Memory Usage

Device: avr128da32

Program: 210 bytes (0.2% Full)
(.text + .data + .bootloader)

Data:  0 bytes (0.0% Full)
(.data + .bss + .noinit)

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


[Bug binutils/31687] [avr] Output of avr-objdump -P mem-usage missing .rodata

2024-05-06 Thread gjl at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31687

--- Comment #1 from Georg-Johann Lay  ---
Created attachment 15493
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15493=edit
attiny40.elf

Test case for ATtiny40

$ avr-objdump -h attiny40.elf 

attiny40.elf: file format elf32-avr

Sections:
Idx Name  Size  VMA   LMA   File off  Algn
  0 .text 0040      0094  2**1
  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .rodata   000a  4040  0040  00d4  2**0
  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .data   00800040  004a  00de  2**0
  CONTENTS, ALLOC, LOAD, DATA

$ avr-objdump -P mem-usage attiny40.elf 

attiny40.elf: file format elf32-avr
AVR Memory Usage

Device: attiny40

Program:  64 bytes (1.6% Full)
(.text + .data + .bootloader)

Data:  0 bytes (0.0% Full)
(.data + .bss + .noinit)

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