Re: Question concerning behavior of GNU-linker on Linux

Dennis Handly <[email protected]> Wed, 25 May 2011 02:33:31 -0700
Newsgroups gmane.comp.gnu.utils
Organization Hewlett-Packard Company
Message-ID <[email protected]>
Alex Vinokur wrote:
> We came across different behavior of HP-linker on HP-UX and GNU-linker
> on Linux.

So which do you like?  Perhaps Oracle's linker works the same as HP-UX?

> We have two libraries:
>   *) libaaa.so and libbbb.so,
>   *) libbbb.so depends on libaaa.so.
> HP-UX linker allows to build exe-file as follows:
>     aCC <options> main.o libbbb.so

The linker has a concept of dependent shlibs.  This is handled at both 
linktime and runtime.