aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}