------- Additional Comments From nickc at redhat dot com  2005-11-21 18:30 
-------
Subject: Re:  undefined reference to `_mpi_sgi_init'

Hi Michael,

> using the above test case I tracked down the place in elflink.c where the
> symbol os is reported as undefined when localed in a shared library. The
> attached patch hacks elflink.c to check for STO_OPTIONAL in h->other. This
> makes the test case work with both native IRIX and Mac OS X cross binutils:

Excellent!  I am a little bit hesitant to apply your patch as it is 
however since it adds target specific code to a file that is meant to be 
generic.  Could you investigate changing your patch so that it adds a 
new elf backend function which can be called when an undefined symbol is 
encountered and which allows individual backends to decide if the symbol 
can be ignored ?

Cheers
   Nick






-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=1150

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to