[RFC] BFD sets wrong start address during format detection

Alan Modra amodra@bigpond.net.au
Wed Nov 23 11:43:00 GMT 2005
On Wed, Nov 23, 2005 at 11:26:22AM +0100, Frederic RISS wrote:
> I first thought that BFD misdetected my file as being elf32-sh64 which
> does sign extension. In fact, the file was correctly detected as
> elf32-shl, but in the process of testing the binary, the entry point
> address of the struct bfd* was overwritten during the elf32-sh64 backend
> test that happened afterwards.
> The attached patch fixes this issue for me. It moves the entry point
> recording down after the last point of failure, so that it's done only
> when the backend actually matches the file.
> Does that seem safe ?

Looks good.  Applying.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list