PATCH: Fix alpha relocation overflow (Re: PATCH: Add _bfd_elf_provide_symbol)

Alan Modra amodra@bigpond.net.au
Wed May 4 06:18:00 GMT 2005


On Tue, May 03, 2005 at 02:24:50PM -0700, H. J. Lu wrote:
> +      /* We have to choose those values very carefully.  Some targets,
> +	 like alpha, may have relocation overflow with 0. "_edata"
> +	 should be defined in all cases.  */
> +      struct elf_link_hash_entry *h
> +	= elf_link_hash_lookup (elf_hash_table (info), "_edata",
> +				FALSE, FALSE, FALSE);
> +      BFD_ASSERT (h != NULL && h->root.type == bfd_link_hash_defined);
> +      start_val = end_val = h->root.u.def.value;

You are going to hit this assert if linking with a non-standard link
script.  "_edata" may well not be defined.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list