This is the mail archive of the gcc-bugs@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: libstdc++/10801: ld bus error on linking .libs/libstdc++ under mips-irix-6.3


"RenE J.V. Bertin" <rjvbertin@hotmail.com> writes:
> The linker crashes when I issue the -s option
> in the build command.

Hmm, this sounds similar to a bug mentioned here:

    http://ftp.mayn.de/pub/irix/updates/MIPSpro_7.2.1.3m-README

Specifically:

    Ld32 seg fault when linking g++ objects.

    When the latest g++ 2.8.1 is used with the latest 7.2.1
    SGI back-end (assembler/linker/strip) any invocation of
    g++ with the '-s' (strip) option seems to cause a SEGV
    in ld32.  This has been fixed (630196).

I suggest you try patching or upgrading your linker.

Alternatively, binutils 2.14 is likely to be released in the next
couple of weeks and it should handle n32 & n64 much better than
previous versions.  You could try using that.  (HJ's 2.14.90.0.2
version is out now and may work OK.)

Using binutils is obviously more bleeding edge, though.  I can't
guarantee it'll work.

> Things work fine when I do not do that. To me, this does
> suggest that gcc does something wrong somewhere when it
> invokes the linker.

There doesn't seem to be anything wrong with the failing
command line.  And if, as you say, removing -s causes the
link to succeed, I really do think that this is a linker bug.

Richard


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