binutils size utility suppresses zero-length sections
The arm-none-eabi-size utility (ver 2.24.51.20140217 from Sourcery CodeBench lite) displays zero-length sections:
(example section in linker script)
.flashpatch :
{
. = ALIGN(4);
*(.flashpatch)
. = ALIGN(4);
} >FLASHPATCH
command:
arm-none-eabi-size -A myfile.elf
...
.flashpatch 0 0
...
The latest version I have of arm-none-eabi-size (2.24.0.20141128; note the lower version!) suppresses sections that have a zero length.
Is this new, intended behavior? I need to see zero-length sections with size. Can this now be done?
FOLLOWUP NOTES:
1. Using the KEEP directive in the linker script does not fix the problem.
2. .elf files generated with version 2.24.51.20140217 of arm-none-eabi-ld display the zero-length sections. Version 2.24.0.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- Terry Guo Edit question
- Last query:
- Last reply: