aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-03-06 08:06:56 +0000
committerJohn Gilmore <gnu@cygnus>1992-03-06 08:06:56 +0000
commit6dc776918c6b6fd31556a4d9faf63c77d82ced05 (patch)
tree3cb0436bf60cc806175efd3673d019fb347314d2
parentd716b16c26072845789920b87629b58a70a3a966 (diff)
downloadgdb-6dc776918c6b6fd31556a4d9faf63c77d82ced05.zip
gdb-6dc776918c6b6fd31556a4d9faf63c77d82ced05.tar.gz
gdb-6dc776918c6b6fd31556a4d9faf63c77d82ced05.tar.bz2
Add swapping of RFD's.
-rw-r--r--bfd/coff-msym.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/bfd/coff-msym.c b/bfd/coff-msym.c
index acdfa15..45c2915 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
+}