This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch bfd/mach-o] implement bfd_get_arch_size for mach-o.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]