solaris10/x86 and studio11 - f95 on a large memory linking fails

On increasing the size of arrays a fortran code fails to link with the error messages like

ld: fatal: relocation error: R_AMD64_PC32: file read.o: symbol ran3.inextp_: value 0x2cbfbd483 does not fit

on a solaris 10 x86/64 (amd64 ) system with studio11 installed.

the compilation flags are:

FFLAGS = -O3 -e -xarch=amd64 -xfilebyteorder=big8:1

we have also included -KPIC which on certain codes seems to help.

[445 byte] By [lydia.heck] at [2007-11-26 8:57:21]
# 1
You might need to compiler with "medium model"You can read more about it here. http://developers.sun.com/prodtech/cc/articles/mmodel.html
ChrisQuenelle at 2007-7-6 22:57:28 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
Thank you Chris. using -xmodel=medium before -xarch=amd64 has solved the problem
lydiaheck at 2007-7-6 22:57:29 > top of Java-index,Development Tools,Solaris and Linux Development Tools...