Hi Nathan,

On 5/28/21, Nathan Hartman <hartman.nat...@gmail.com> wrote:
> On Fri, May 28, 2021 at 4:43 PM Alan Carvalho de Assis
> <acas...@gmail.com> wrote:
>>
>> Hi Erik,
>>
>> Thank you very much for your help.
>>
>> I noticed the final binary is too big (more than 300KB), is it also
>> happening to you?
>>
>> BR,
>>
>> Alan
>
>
> Do some sections in the linker script need (NOLOAD)?
>
> See PR-3198 [1], where the binary was also huge, until davids5 taught
> me about that:
>
> [1] https://github.com/apache/incubator-nuttx/pull/3198
>

Good question!

When using external libraries with NuttX I need to use "--gc-sections"
to reduce the final size:

https://acassis.wordpress.com/2020/10/06/linking-external-libraries-on-nuttx/

BR,

Alan

Reply via email to