Add swapping of RFD's.
authorJohn Gilmore <gnu@cygnus>
Fri, 6 Mar 1992 08:06:56 +0000 (08:06 +0000)
committerJohn Gilmore <gnu@cygnus>
Fri, 6 Mar 1992 08:06:56 +0000 (08:06 +0000)
bfd/coff-msym.c

index acdfa153991b506337c86c3889b1981c2c21573c..45c2915c55caf1f0a2a575c55eb76a093b0f30bc 100644 (file)
@@ -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
+}