PATCH: Re: ld internal error

Alan Modra amodra@bigpond.net.au
Thu Mar 20 01:38:00 GMT 2003
On Wed, Mar 19, 2003 at 05:11:39PM -0800, H. J. Lu wrote:
> --- bfd/pdp11.c.pdp11	2002-12-04 09:03:07.000000000 -0800
> +++ bfd/pdp11.c	2003-03-19 16:54:37.000000000 -0800
> @@ -713,11 +713,7 @@ NAME(aout,some_aout_object_p) (abfd, exe
>  	   || N_MAGIC (*execp) == BMAGIC)
>      adata (abfd).magic = o_magic;
>    else
> -    {
> -      /* Should have been checked with N_BADMAG before this routine
> -	 was called.  */
> -      abort ();
> -    }
> +    return NULL;
>  
>    bfd_get_start_address (abfd) = execp->a_entry;

No, I think N_BADMAG should be fixed.  It doesn't correspond at all
with the code in this function.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list