[PATCH] implement correct alignment for Mach-O archive entries

Matt Thomas matt@3am-software.com
Tue Oct 29 18:11:00 GMT 2013


On Oct 29, 2013, at 10:54 AM, Nathan Froyd <froydnj@mozilla.com> wrote:

> +  if (bfd_get_flavour (abfd) == bfd_target_mach_o_flavour)
> +    ptr += ptr % 4;
> +  else

That does not pad to 4.

ptr = (ptr + 3) & ~3;

or

ptr += 4 - (ptr % 4);




More information about the Binutils mailing list