...And calculate same when building the armap (for ranlib).

This commit is contained in:
tv 1998-05-25 23:36:43 +00:00
parent 6548f40f95
commit 6b3823ed1a

View File

@ -1959,8 +1959,11 @@ bsd_write_armap (arch, elength, map, orl_count, stridx)
{
do
{
firstreal += arelt_size (current) + sizeof (struct ar_hdr);
firstreal += firstreal % 2;
unsigned int size = arelt_size (current);
if (!strncmp(arch_hdr (current)->ar_name, "#1/", 3))
size += strlen(normalize(current, current->filename));
firstreal += size + sizeof (struct ar_hdr);
firstreal += size % 2;
current = current->next;
}
while (current != (bfd *) (map[count]).pos);