This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold][patch] Fix non-PIC warning to print only when building position-independent output
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Cary Coutant <ccoutant at google dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Wed, 25 Mar 2009 20:12:03 -0400 (EDT)
- Subject: Re: [gold][patch] Fix non-PIC warning to print only when building position-independent output
- References: <c17be2b30903251700v3a3b9c27j57ee92e0cc9c3b5c@mail.gmail.com>
On Wed, 25 Mar 2009, Cary Coutant wrote:
> If we ever do hit this case in a
> non-position-independent link, however, I hope it'll be the compiler's
> fault, and we shouldn't print a message that implies that -fPIC is
> actually required. (Maybe we should print something instead about a
> possible bug in the compiler or assembly code?)
IMHO don't just hint at a gcc bug: missing -fPIC is much too
common. Or if that's not applicable here, maybe the user didn't
use the correct linker option?
brgds, H-P