From: John Gilmore Date: Fri, 6 Mar 1992 08:06:56 +0000 (+0000) Subject: Add swapping of RFD's. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6dc776918c6b6fd31556a4d9faf63c77d82ced05;p=binutils-gdb.git Add swapping of RFD's. --- diff --git a/bfd/coff-msym.c b/bfd/coff-msym.c index acdfa153991..45c2915c55c 100644 --- a/bfd/coff-msym.c +++ b/bfd/coff-msym.c @@ -356,3 +356,20 @@ ecoff_swap_rndx_in (bigend, ext_copy, intern) abort(); #endif } + +/* Swap in a relative file descriptor. */ + +void +ecoff_swap_rfd_in (abfd, ext, intern) + bfd *abfd; + struct rfd_ext *ext; + RFDT *intern; +{ + + *intern = bfd_h_get_32 (abfd, (bfd_byte *)&ext->rfd); + +#ifdef TEST + if (memcmp ((char *)ext, (char *)intern, sizeof (*intern)) != 0) + abort(); +#endif +}