Re: Linker won't bail out on non-existing functions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux