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 _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils