Linker won't bail out on non-existing functions?
Josef Wolf
jw@raven.inka.de
Fri Sep 4 12:56:58 GMT 2020
On Fri, Sep 04, 2020 at 02:45:04PM +0300, Alexander Monakov wrote:
> On Fri, 4 Sep 2020, Josef Wolf wrote:
>
> > So why won't the linker bail out when it can't resolve a reference?
> > Any hints?
>
> You're linking with --gc-sections, and if all references to undefined functions
> are in discarded sections, the linker won't complain. In other words, checking
> for remaining undefined references happens after discarding unneeded sections.
Thanks for the hint, Alexander!
the problem was that this function was used in a different task which was not
instantiated yet. =8-O
--
Josef Wolf
jw@raven.inka.de
More information about the Gcc-help
mailing list