
24 Dec
2017
24 Dec
'17
3:24 a.m.
On Sun, Dec 24, 2017 at 01:40:31AM +0100, Marek Vasut wrote:
On 12/22/2017 06:19 PM, Tom Rini wrote:
In order for these commands to not be included in SPL we need to guard compilation with CONFIG_SPL_BUILD checks. Reorganize some sections of code slightly in order to avoid new warnings and mark the command functions as static as they should have been before.
I'd expect the gc sections to collect those, is that no longer the case?
It collects things in the general case, yes, gc sections collects things. In the case of linker lists, since we include them, no, they don't get discarded.
Do these commands actually land in the SPL and does this patch make any size difference ?
Yes, they're included in SPL today and this patch causes them to not be.
--
Tom