This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linker stumbles over non-grouped .text/.rodata for a C++ function


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]