projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d716b16
)
Add swapping of RFD's.
author
John Gilmore
<gnu@cygnus>
Fri, 6 Mar 1992 08:06:56 +0000
(08:06 +0000)
committer
John Gilmore
<gnu@cygnus>
Fri, 6 Mar 1992 08:06:56 +0000
(08:06 +0000)
bfd/coff-msym.c
patch
|
blob
|
history
diff --git
a/bfd/coff-msym.c
b/bfd/coff-msym.c
index acdfa153991b506337c86c3889b1981c2c21573c..45c2915c55caf1f0a2a575c55eb76a093b0f30bc 100644
(file)
--- 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
+}