...And calculate same when building the armap (for ranlib).
This commit is contained in:
parent
6548f40f95
commit
6b3823ed1a
7
gnu/dist/bfd/archive.c
vendored
7
gnu/dist/bfd/archive.c
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user