the number of types of relocation possible in the object file. (Now, hopefully, working.) Also change the object serialiser/deserialiser to never try to read or write raw structures; it's way safer this way and we don't need the performance boost any more. --HG-- branch : default-branch
24 lines
492 B
C
24 lines
492 B
C
/* $Id$ */
|
|
/*
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
*/
|
|
#include "obj.h"
|
|
|
|
void
|
|
rd_ranlib(fd, ran, cnt)
|
|
register struct ranlib *ran;
|
|
register long cnt;
|
|
{
|
|
rd_bytes(fd, (char *) ran, cnt * SZ_RAN);
|
|
{
|
|
register char *c = (char *) ran + cnt * SZ_RAN;
|
|
|
|
ran += cnt;
|
|
while (cnt--) {
|
|
ran--;
|
|
c -= 4; ran->ran_pos = get4(c);
|
|
c -= 4; ran->ran_off = get4(c);
|
|
}
|
|
}
|
|
}
|