rebuilding the shared libc
David J. Kleikamp
shaggy at kleikamp.austin.ibm.com
Fri Jun 7 04:19:10 AEST 1991
In article <676126057.15477 at minster.york.ac.uk> forsyth at minster.york.ac.uk writes:
>has anyone worked out precisely what ld options, and import and
>export files to use to build a new version of the C library,
>with some functions replaced?
>(we are running rs6000 aix version 3003.)
This has worked for me:
First extract shr.o from libc.a:
ar x /lib/libc.a shr.o
mv shr.o shr.o.orig
Next create an exports file:
dump -Tv shr.o.orig | awk '$$4 == "EXP" {print $$8}' > libc.exp
now the bind:
ld -bh:4 -D0 -bnso -H512 -T512 -bM:SRE -o shr.o {your files} shr.o.orig \
/lib/libs.a -bI:/lib/syscalls.exp -bE:libc.exp -bE:/lib/syscalls.exp
Of course, you can add exports to libc.exp as you so desire.
--
---------------------------------------------------------------------------
David J. "Shaggy" Kleikamp dave at kleikamp.austin.ibm.com
The content of this posting is independent of official IBM position.
External: uunet!cs.utexas.edu!ibmaus!auschs!kleikamp.austin.ibm.com!dave
More information about the Comp.unix.aix
mailing list