|
From: | Boris Valerievich |
Subject: | Strange behaviour of ld output with '-print-memory-usage' |
Date: | Mon, 3 Apr 2023 17:42:23 +0300 |
.stack ORIGIN(RAM) + LENGTH(RAM) - __stack_size :
{
. = ALIGN(4);
PROVIDE(_susrstack = . );
. = . + __stack_size;
PROVIDE( _eusrstack = .);
} >RAM
I've got 100% usage of RAM.
When I'm using the next one notation:
.stack :
{
. = ALIGN(4);
PROVIDE(_susrstack = . );
. = . + __stack_size;
PROVIDE( _eusrstack = .);
} >RAM
I've got 3% of RAM usage.
But in fact I've just moved the stack inside the section.
When I'm using old one GCC 8.3 - everything is OK in both cases.
[Prev in Thread] | Current Thread | [Next in Thread] |