bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug binutils/4292] nm and objdump show addresses on 64 bits for 32b


From: Nick Clifton
Subject: Re: [Bug binutils/4292] nm and objdump show addresses on 64 bits for 32bit a.out files
Date: Thu, 29 Mar 2007 18:17:05 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061215)

Hi Quentin,

target=i486-linuxaout.

The problem here is that the aout file format does not specify the address size of the objects it contains, so the BFD library does not know whether the objects are 32-bit or 64-bit. Instead nm defaults to using the bitsize of the host.

I have uploaded a patch which improves nm's heuristic. Now if the BFD library cannot tell it the bitsize of the target it will look at the target format's name. If the string "64" occurs anywhere in the name then it will assume a 64-bit bitsize, otherwise it will assume a 32-bit bitsize. Not perfect but I think that it should work most of the time.

Please try out the patch and let me know what you think.

Cheers
  Nick






reply via email to

[Prev in Thread] Current Thread [Next in Thread]