[Patch bfd/mach-o] implement bfd_get_arch_size for mach-o.
Alan Modra
amodra@gmail.com
Tue Feb 21 01:02:00 GMT 2012
On Mon, Feb 20, 2012 at 05:41:23PM +0100, Tristan Gingold wrote:
>
> On Feb 17, 2012, at 10:09 PM, Iain Sandoe wrote:
>
> > without this we (eventually, several patches away) end up with nonsense when processing cfi directives.
>
> Ok from a Mach-O point of view. I wonder why we cannot use this generic code for all flavors.
> Just remove the parenthesis around abfd.
You could do that if you check all uses of bfd_get_arch_size. I think
there is only one that might matter, in nm.c, and that could be fixed
to use:
static void
set_print_width (bfd *file)
{
print_width = bfd_get_arch_size (file);
if (print_width < 32)
print_width = 32;
}
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list