GCC forces all symbols in the link library
, add their own library to the mandatory link
,–no whole-archive restore
wants to abstract SDK related functions out of a library for app to call.
thus the app-related code is compiled and linked to the library to generate the final elf executable.
method:
Add -wl,–whole-archive,
: strong>
– Wl, — the whole – archive span> xx. A span> – Wl, – no – whole – archive span>
p>
p>