bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/4292] nm and objdump show addresses on 64 bits for 32bit a


From: Quentin dot Godfroy at ens dot fr
Subject: [Bug binutils/4292] nm and objdump show addresses on 64 bits for 32bit a.out files
Date: 29 Mar 2007 18:35:03 -0000

------- Additional Comments From Quentin dot Godfroy at ens dot fr  2007-03-29 
19:35 -------
(In reply to comment #7)
> Subject: Re:  nm and objdump show addresses on 64 bits
>  for  32bit a.out files
> 
> > 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.

Or the maximum bitsize of its targets, as the problem also shows for 32bit tools
but who can handle 64bit objects.

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

It works, thanks (I suppose the work could also be done on objdump, to have a
coherent behaviour), but it breaks the purpouse H.J. Lu mentioned.

It's indeed not clear about what should be done, for multi-arch utils. Maybe a
switch ? (but it would become much more than a small patch, and I don't want to
have an argument with developpers)

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4292

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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