|
From: | Nick Clifton |
Subject: | Re: [Bug ld/1150] undefined reference to `_mpi_sgi_init' |
Date: | Mon, 21 Nov 2005 18:32:23 +0000 |
User-agent: | Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |