This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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: PATCH: Fix building N64 libffi.so with gcc on IRIX 6.5


On 01/06/2010 09:05 AM, Rainer Orth wrote:
This change

2009-12-25  Frank Everdij<f.p.x.everdij@tudelft.nl>
[...]
	* src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
	since they are Linux/GNU Assembler specific.

broke the N64 libffi.so build on mips-sgi-irix6.5:

ld64: FATAL   45 : Non-PIC (src/mips/.libs/n32.o) used in shared/call_shared link.
collect2: ld returned 4 exit status
make[7]: *** [libffi.la] Error 1

.abicalls was introduced in 2005 to fix just that error (PR
libgcj/21943).  I'm now checking for __GNUC__ instead of linux here,
since GCC on IRIX 5/6 requires gas, which supports both, and Linux uses
gas anyway.

The patch allowed the bootstrap to continue.

Ok for mainline?

Yes, thanks.


AG



Rainer



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