Browse Source
When using --print-memory-usage, the printed size can be zero and in that case, the unit should be B and not GB. ld/ * ldlang.c (lang_print_memory_size) Print 0 B instead of 0 GB. * testsuite/ld-scripts/print-memory-usage-1.l: Validate emplty region. * testsuite/ld-scripts/print-memory-usage-1.t: Define empty region. Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>binutils-2_42-branch
committed by
Nick Clifton
3 changed files with 5 additions and 1 deletions
@ -1,3 +1,4 @@ |
|||
Memory region Used Size Region Size %age Used |
|||
ROM: 32 B 1 KB 3.1[23]% |
|||
RAM: 32 B 256 KB 0.01% |
|||
FOO: 0 B 1 KB 0.00% |
|||
|
|||
Loading…
Reference in new issue