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

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

 



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.

Alexander



[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