Subject: | |
From: | |
Reply To: | |
Date: | Mon, 21 Jun 1999 16:24:04 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi All,
Here I come again with a newbie question :
I'm trying to build shared libraries on MPE 5.5. I'm using gcc 2.7.2.2
found on
the jazz server ( by the way, the jazz server doesn't hold the 2.8 ? ).
For building my shared library, on MPE, what are the needed flags ?
I thought I needed -f PIC --shared, but at library link time, using
gcc -Wl,-b -o mylib.sl objs.o, the linker fails, claiming no PIC section
must be in my .o !
What is the difference between --shared and -fPIC anyway ?
When compiling my .o with no special flag (not even --shared ) the
library link
occurs with no warning, my binary program ( gcc -o myprog -Wl,-ashared
prog.o -l mylib) also
links with no problem but running it just leads to a crash :
EXEC FUNCTION FAILED ; subsys 517, info 48
abort : myprog
.....
I see something suspect though using ECHO=1 ( to get the linker traces )
the linkedit linker uses the shared option, which has no real purpose
since this is a final binary.
How to know what is wrong ?
Thanks
|
|
|