Shared libraries on the suns
Ok, so I was compiling shared libraries on the sun using the -share flag:
gcc blahblah -share blah
(Nb: this is in the SO_LFLAGS variable in the StGermain configure script).
And I was getting these :
ld: fatal relocations remain against allocatable but non-writable sections
It turns out the -share flag is actually like using a -G -dys (?sp) -z text flags, and for this I don't think you want the z text stuff.
So, there were 2 options: use -share -mimpure-text which gets sort of leaves off the -z text stuff (as far as I can figure) OR just use -G, which is what I did. (Note -mimpure-text is only a sun option apparently).
Next speedbump:
ld: fatal: Symbol referencing errors.
(in: /home/cjoneill/StGermain/StGermain/FE/testApps)
gcc blahblah -share blah
(Nb: this is in the SO_LFLAGS variable in the StGermain configure script).
And I was getting these :
ld: fatal relocations remain against allocatable but non-writable sections
It turns out the -share flag is actually like using a -G -dys (?sp) -z text flags, and for this I don't think you want the z text stuff.
So, there were 2 options: use -share -mimpure-text which gets sort of leaves off the -z text stuff (as far as I can figure) OR just use -G, which is what I did. (Note -mimpure-text is only a sun option apparently).
Next speedbump:
ld: fatal: Symbol referencing errors.
(in: /home/cjoneill/StGermain/StGermain/FE/testApps)


0 Comments:
Post a Comment
<< Home