From: Josef Wolf <jw@raven.inka.de>
To: gcc-help@gcc.gnu.org
Subject: Re: Linker won't bail out on non-existing functions?
Date: Fri, 4 Sep 2020 14:56:58 +0200 [thread overview]
Message-ID: <20200904125658.GC4037@raven.inka.de> (raw)
In-Reply-To: <alpine.LNX.2.20.13.2009041443000.18674@monopod.intra.ispras.ru>
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
prev parent reply other threads:[~2020-09-04 13:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-04 10:18 Josef Wolf
2020-09-04 11:45 ` Alexander Monakov
2020-09-04 12:56 ` Josef Wolf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200904125658.GC4037@raven.inka.de \
--to=jw@raven.inka.de \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).