This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linker stumbles over non-grouped .text/.rodata for a C++ function
- From: Ian Lance Taylor <iant at google dot com>
- To: Stephan Bergmann <stephan dot bergmann dot secondary at googlemail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 31 Aug 2011 17:14:44 -0700
- Subject: Re: Linker stumbles over non-grouped .text/.rodata for a C++ function
- References: <7B454F3C-2C07-4499-8D25-9432F30A1542@googlemail.com> <mcrfwkhpco4.fsf@coign.corp.google.com> <DDD9519C-B8C7-470F-950A-AF637AF5BFD0@googlemail.com>
Stephan Bergmann <stephan.bergmann.secondary@googlemail.com> writes:
>> That said, this message from the linker is a warning, and you can
>> normally ignore it.
>
> Hm, for me it resulted in an ld exit code of 1, but maybe that was due to one of the additional command line switches apart from -shared when linking (but which did not otherwise affect the problem).
Whoops, you're right, somebody has changed it to an error. That seems
unfortunate, as it is often harmless. Sorry about that.
In a pinch you could try -Wl,--noinhibit-exec.
Ian