This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARM long branch stubs: shared libs


On Thu, Mar 12, 2009 at 03:48:13PM +0100, Christophe LYON wrote:
> Here is a slightly updated patch, which preserves the original behavior  
> with undefined symbols when not generating a shared lib.

Sorry for not responding earlier.

> +		      else if (hash->root.root.type == bfd_link_hash_undefweak)
>  			/* For a shared library, these will need a PLT stub,
>  			   which is treated separately.
>  			   For absolute code, they cannot be handled.  */
>  			continue;
> +		      else if (hash->root.root.type == bfd_link_hash_undefined)
> +			{

Why should undefined and weak undefined symbols be handled
differently?  That's usually a mistake.  Take your test case for this
issue and mark the undefined symbol with ".weak".

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]