diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-01-03 16:16:01 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-01-03 16:16:01 +0000 |
commit | 3f99570ec9e7026a8f4a2567029ef8231b9c1fbf (patch) | |
tree | c96e31d427615fd7055200f3a7db7260ba1e1f1e /bfd/aout-target.h | |
parent | ae5c71d6c13dfadec2d7be265848b25f7d6ae8fa (diff) | |
download | gdb-3f99570ec9e7026a8f4a2567029ef8231b9c1fbf.zip gdb-3f99570ec9e7026a8f4a2567029ef8231b9c1fbf.tar.gz gdb-3f99570ec9e7026a8f4a2567029ef8231b9c1fbf.tar.bz2 |
* aout-target.h, netbsd386.c: Replace NO_SWAP_MAGIC with SWAP_MAGIC,
and do the swapping here rather than calling ntohl from the N_*
macros. This cleans up assumptions about the size of a host long,
the existence to ntohl, etc.
Diffstat (limited to 'bfd/aout-target.h')
-rw-r--r-- | bfd/aout-target.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/aout-target.h b/bfd/aout-target.h index 70835c5..379cf69 100644 --- a/bfd/aout-target.h +++ b/bfd/aout-target.h @@ -93,11 +93,11 @@ DEFUN(MY(object_p),(abfd), return 0; } -#ifdef NO_SWAP_MAGIC - memcpy (&exec.a_info, exec_bytes.e_info, sizeof(exec.a_info)); +#ifdef SWAP_MAGIC + exec.a_info = SWAP_MAGIC (exec_bytes.e_info); #else exec.a_info = bfd_h_get_32 (abfd, exec_bytes.e_info); -#endif /* NO_SWAP_MAGIC */ +#endif /* SWAP_MAGIC */ if (N_BADMAG (exec)) return 0; #ifdef MACHTYPE_OK |