Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!aunro!ukma!wuarchive!cs.utexas.edu!romp!auschs!d75!awdprime!kleikamp.austin.ibm.com!shaggy From: shaggy@kleikamp.austin.ibm.com (David J. Kleikamp) Newsgroups: comp.unix.aix Subject: Re: rebuilding the shared libc Message-ID: <8254@awdprime.UUCP> Date: 6 Jun 91 18:19:10 GMT References: <676126057.15477@minster.york.ac.uk> Sender: news@awdprime.UUCP Organization: IBM AWD, Austin Lines: 25 In article <676126057.15477@minster.york.ac.uk> forsyth@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@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