wb wrote:
uh? could you explain please?
There is a flag that you can pass to ld(1), -z text that:
In dynamic mode only, forces a fatal error if any relo-
cations against non-writable, allocatable sections
remain. For historic reasons, this mode is not the
default when building an executable or shared object.
However, its use is recommended to insure that the text
segment of the dynamic object being built is shareable
between multiple running processes. A shared text
segment incurs the least relocation overhead when loaded
into memory.
The most typical way of incurring text relocations is by building
a shared object with non pic code. ie, with objects that were
*not* built using -Kpic (gcc -fpic).
Either:
i. generate all the relocatable objects that are being supplied
to your shared object with -Kpic, or
ii. remove the -ztext flag
i. would be preferable.
--
Rod
_______________________________________________
opensolaris-discuss mailing list
[email protected]