Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sun Linker Option

Status
Not open for further replies.

jameslu

Programmer
Nov 21, 2002
8
GB
Hiya,

I'm looking for a rather obscure Sun Solaris ld linker option which is proving very difficult to find!!

The scenario is that I'm building an executable which makes a call to a function which is resolved by a particular shared library. However, to get to this shared library, other shared libraries have to be referenced - basically there is a 3 to 4 level shared library hierarchy so the whole setup is rather complex. The problem is that the executable is failing during the linking process because other shared libraries also call the particular function and therefore the system thows a wobbly about not being able to resolve the symbol.

By default, ld seems to make one pass through the list of input shared libraries and within this pass, each shared library's symbol table may be searched several times in a row but each other input shared library is processed only once.

What I need is an ld option which makes additional passes through the list of shared libraries in an attempt to resolve all symbols.

There is an equivalent option in SEQUENT which is '-Ur'.

Please can someone tell me what this option is on Sun if it exists at all??!!

Thanks,

JL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top