Relocation overflow ... displacement too large
Relocation overflow ... displacement too large
- Subject: Relocation overflow ... displacement too large
- From: "Noel Belcourt" <email@hidden>
- Date: Thu, 4 May 2006 14:24:41 -0600
Hi all,
If this isn't the correct place to post this question, please redirect
me.
Our system and compiler information.
% uname -a
Darwin machine_name 8.2.0 Darwin Kernel Version 8.2.0: Fri Jun 24
17:46:54 PDT 2005; root:xnu-792.2.4.obj~3/RELEASE_PPC Power Macintosh
powerpc
% gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5026.obj~19/src/configure
--disable-checking --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/gcc/darwin/4.0/c++
--build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8
--target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.0 (Apple Computer, Inc. build 5026)
We have a C++ main program that links in C++, C, and Fortran libraries.
The C and C++ libraries were compiled with -mlong-branch.
Unfortunately, we still gets hundreds of thousands of these
/usr/bin/ld: darwin-4.0/link-static/libnoel.a(Noel_Foo.o) relocation
overflow for relocation entry 3476 in section (__TEXT,__textcoal_nt)
(displacement too large)
messages. The messages only refer to C and C++ object files, not to
the Fortran code. This is a large finite element code that,
unfortunately, we can't make a lot of changes to. I've seen some
discussion about resizing static arrays but the standard answer is to
recompile the code with the -mlong-branch option.
Given that we've already recompiled it with -mlong-branch, can anyone
suggest another option to get our code linked? Does anyone know if
building shared (-fPIC) will affect this? Is this a bug in the linker?
Any insight you can share is greatly appreciated.
Thanks.
-- Noel Belcourt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden