mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
Add swapping of RFD's.
This commit is contained in:
@ -356,3 +356,20 @@ ecoff_swap_rndx_in (bigend, ext_copy, intern)
|
|||||||
abort();
|
abort();
|
||||||
#endif
|
#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
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user