Originally posted by: SystemAdmin
hi,
I am trying to port one of the products on AIX. In the product, there is something like the following which happens in linux:
Module M1 is linked into an an partially linked object using ld -r and then the result agreegate is objcopy'ed to localize all the symbols except a few.
This aggregate object is used in Module M2, to create a shared library from M2, which again exports its own set of symbols.
I want to acheive the same thing in AIX. I tried the following:
1. Creating a shared object from M1 using: ld -bnoentry -bM:SRE -bexport:<file> ...
2. creating a shared a object from M2 I again retried the same method, but statically linked M1 into M2.
The shared library from M2 is supposed to be run-time linked using -brtl later.
Is this suppose to work? Or
I have to export all the symbols from M2 using -G -bexpall -qmkshrobj ... since M2 has an intermix of c/c++ shared libraries.
#AIX-Forum