site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi all, Our system and compiler information. 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... If this isn't the correct place to post this question, please redirect me. % 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? This email sent to site_archiver@lists.apple.com