bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/12525] gold SEGV linking libgcc_s.so.1 on Solaris 11/x86


From: ro at CeBiTec dot Uni-Bielefeld.DE
Subject: [Bug gold/12525] gold SEGV linking libgcc_s.so.1 on Solaris 11/x86
Date: Mon, 7 Mar 2011 19:10:19 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12525

--- Comment #10 from Rainer Orth <ro at CeBiTec dot Uni-Bielefeld.DE> 
2011-03-07 19:10:06 UTC ---
> --- Comment #9 from Ian Lance Taylor <ian at airs dot com> 2011-03-04 
> 19:08:43 UTC ---
> output.cc does #include <fcntl.h>.  gold is always compiled with
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64.  Those two facts together should
> ensure that posix_fallocate is called with the right types.  Can you suggest a
> way that the gold source should be changed to fix this?

Not yet, since this was just a guess based on the fact that truss showed
impossibly large values for a couple of the fcntl struct flock64
members.  I'll have to analyse this further.

In the meantime, I've tried to disable posix_fallocate in config.h, thus
using ftruncate (or rather ftruncate64) instead.  This works (which
suggests that my guess above may be wrong), but linking libgcc_s.so.1
fails again like this:

gold-2.21: internal error in get_fde_pc, at
/vol/gnu/src/binutils/binutils-2.21/gold/ehframe.cc:281

According to gcc/config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT),
Solaris 2/x86 uses datarel encoding, which isn't handled yet in
gold/ehframe.cc (Eh_frame_hdr::get_fde_pc).

    Rainer

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]