bfd/
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 1 Apr 2009 20:04:28 +0000 (20:04 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Wed, 1 Apr 2009 20:04:28 +0000 (20:04 +0000)
commit2e470849cc639eca2239a8c9ab1be4d19481266e
tree9753fa661d938898c9b21f9e55faa1d226ce493e
parent24c611d1c4f188680de12c0cf1993d266b7e630a
bfd/
* coff-rs6000.c (member_layout): New structure.
(archive_iterator): Likewise.
(member_layout_init): New function.
(archive_iterator_begin): Likewise.
(archive_iterator_next): Likewise.
(xcoff_write_armap_old): Use the new iterator functions.
(do_shared_object_padding): Delete.
(xcoff_write_armap_big): Use the new iterator functions.  Simplify
handling of arch_info.
(xcoff_write_archive_contents_old): Allocate arelt_data in the
first loop rather than the second.  Allocate a member header if
there isn't one, then work out the stat information and length
in the first loop too.  Use the new iterators for the second loop.
(xcoff_write_archive_contents_big): Likewise.
bfd/ChangeLog
bfd/coff-rs6000.c