home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!ut-emx!tivoli!TIVOLI.COM!stuart
- From: stuart@TIVOLI.COM (Stuart Jarriel)
- Newsgroups: comp.sys.hp
- Subject: Linker selection of symbols from shared-libs
- Message-ID: <3270@tivoli.UUCP>
- Date: 26 Aug 92 17:23:10 GMT
- Sender: mikec@tivoli.UUCP
- Organization: Tivoli Systems, Inc
- Lines: 18
-
- This is a question about the HPUX linker, and the order that
- it resolves symbols.
-
- Lets say I have a shared lib, libmine.sl, and there is a function in
- libmine.sl called write().
-
- So I build my program with:
-
- cc program.c -o program -lmine
-
- will program use the write in libc.sl or in libmine.sl?
-
- (actually, the answer is libc.sl)
-
- Can I force the opposite behavior, so that my library can overwrite the
- symbols provided in libc.sl?
-
- stuart
-