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




_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to