SHA256
1
0
forked from pool/binutils
binutils/binutils-2.23.52.0.1-64-bit-thin-archives.patch
Richard Biener 318c193067 Accepting request 196965 from home:namtrac:bugfix
- Add binutils-2.23.52.0.1-64-bit-thin-archives.patch to fix thin
  archive creation on 64bit systems. This is rh#915411 and should
  also fix webkitgtk on s390x.

OBS-URL: https://build.opensuse.org/request/show/196965
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=141
2013-09-04 08:09:24 +00:00

26 lines
944 B
Diff

*** ../binutils-2.23.52.0.1.orig/bfd/archive64.c 2013-03-01 17:20:39.873535502 +0000
--- bfd/archive64.c 2013-03-01 17:22:30.410538566 +0000
*************** bfd_elf64_archive_write_armap (bfd *arch
*** 210,218 ****
if (bfd_bwrite (buf, 8, arch) != 8)
return FALSE;
}
/* Add size of this archive entry */
! archive_member_file_ptr += (arelt_size (current)
! + sizeof (struct ar_hdr));
/* remember about the even alignment */
archive_member_file_ptr += archive_member_file_ptr % 2;
}
--- 210,220 ----
if (bfd_bwrite (buf, 8, arch) != 8)
return FALSE;
}
+
/* Add size of this archive entry */
! archive_member_file_ptr += sizeof (struct ar_hdr);
! if (! bfd_is_thin_archive (arch))
! archive_member_file_ptr += arelt_size (current);
/* remember about the even alignment */
archive_member_file_ptr += archive_member_file_ptr % 2;
}