I have been using the intel compiler on a woodcrest machine .
$icc -DLINUX64 -DLINUX -DOS_USE_ALTERNATE_STD -DLGC_DEFINED -DOW50 -D__USE_EXTERN_INLINES -D_POSIX_C_SOURCE=199309 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -DLGC_DEFINED -DOW50 -D__USE_EXTERN_INLINES -D_POSIX_C_SOURCE=199309 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_BSD_SOURCE -DPORTMAP -fPIC -i-dynamic -ip -O2 -mp1 -axT -xW -cxxlib-gcc -mp1 -axT -xW -cxxlib-gcc -mcmodel=large -wd177,191,858,981 -fno-builtin-csqrt -fno-builtin-cexp ./test.c -c
$icc -fPIC -ip -O2 -axT -xW -cxxlib-gcc -mcmodel=large -mp1 -axT -xW -cxxlib-gcc -mcmodel=large -wd177,191,858,981 -fno-builtin-csqrt -fno-builtin-cexp -shared -fPIC -o ./libtest.so ./test.o
ld: ./test.o: relocation R_X86_64_PC32 against `__intel_new_proc_init' can not be used when making a shared object; recompile with -fPIC
ld: final link failed: Bad value
This happens only for the following option
-mcmodel=large
Does not occur on -mcmodel-medium
Can someone enlighten me on this problem ?? :(
Thanks in advance ..
--
The philosophy of one century is the common sense of the next
--Megha
#include<stdio.h> int main() { printf("Hello ------> Bug"); return(0); }
_______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils