This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

g++ fortran shared object error


Dear List:

I am using gcc 3.1 on Sun Solaris 2.8 and I am trying to build
a Fortran shared library using g++.   I got the following messages
when I tried to build a simple Fortran test program

g++ -shared -o test.so test.o

Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x8         test.o
<unknown>                           0xc         test.o
<unknown>                           0x18        test.o
<unknown>                           0x1c        test.o
<unknown>                           0x20        test.o
<unknown>                           0x24        test.o
s_wsle                              0x10        test.o
do_lio                              0x30        test.o
e_wsle                              0x38        test.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
 
Anyone knows how to solve this problem?  

Thanks

Philip


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