This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: Q: sparcv9-sun-solaris2.8 R_SPARC_WDISP30 relocation error: where to report?


> Make sure all object files linked in Glob.so have been compiled with
-fPIC.

AFAIK everything that goes into Glob.so *is* compiled with -fPIC:

        Making File::Glob (dynamic)
Writing Makefile for File::Glob
make[1]: Entering directory `/emc01/tmo/be8/tmp/perl-5.9.2/ext/File/Glob'
make[1]: Leaving directory `/emc01/tmo/be8/tmp/perl-5.9.2/ext/File/Glob'
make[1]: Entering directory `/emc01/tmo/be8/tmp/perl-5.9.2/ext/File/Glob'
Skip ../../../lib/File/Glob.pm (unchanged)
gcc -c   -fno-strict-aliasing -pipe -I/usr/local/include -mcpu=v9 -m64
-Wa,-xarch=v9 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION=\"1.04\" -DXS_VERSION=\"1.04\" -fPIC "-I../../.."   bsd_glob.c
../../../miniperl "-I../../../lib" "-I../../../lib"
../../../lib/ExtUtils/xsubpp  -typemap ../../../lib/ExtUtils/typemap 
Glob.xs > Glob.xsc && mv Glob.xsc Glob.c
gcc -c   -fno-strict-aliasing -pipe -I/usr/local/include -mcpu=v9 -m64
-Wa,-xarch=v9 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION=\"1.04\" -DXS_VERSION=\"1.04\" -fPIC "-I../../.."   Glob.c
Running Mkbootstrap for File::Glob ()
chmod 644 Glob.bs
rm -f ../../../lib/auto/File/Glob/Glob.so
gcc  -Wl,-E -G -G -m64 bsd_glob.o Glob.o  -o
../../../lib/auto/File/Glob/Glob.so        \
        \

chmod 755 ../../../lib/auto/File/Glob/Glob.so
cp Glob.bs ../../../lib/auto/File/Glob/Glob.bs
chmod 644 ../../../lib/auto/File/Glob/Glob.bs
make[1]: Leaving directory `/emc01/tmo/be8/tmp/perl-5.9.2/ext/File/Glob'
...

Regards

Andre


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