aboutsummaryrefslogtreecommitdiff
path: root/bfd/netbsd386.c
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1994-03-17 00:45:26 +0000
committerDavid MacKenzie <djm@cygnus>1994-03-17 00:45:26 +0000
commitae6710bc9822e7abe7a51f594e6d05ecc5f3578b (patch)
treea936942272c14f3d12df7482c0d3f76bdcc1dd92 /bfd/netbsd386.c
parent614a3211d4dbf68c53974b9ad57a5c152cf991f2 (diff)
downloadgdb-ae6710bc9822e7abe7a51f594e6d05ecc5f3578b.zip
gdb-ae6710bc9822e7abe7a51f594e6d05ecc5f3578b.tar.gz
gdb-ae6710bc9822e7abe7a51f594e6d05ecc5f3578b.tar.bz2
* netbsd386.c (N_SET_FLAGS): Don't nuke the machine id field.
From sukes@glue.umd.edu (Tasuki Hirata).
Diffstat (limited to 'bfd/netbsd386.c')
-rw-r--r--bfd/netbsd386.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/netbsd386.c b/bfd/netbsd386.c
index 5682df3..7430b5e 100644
--- a/bfd/netbsd386.c
+++ b/bfd/netbsd386.c
@@ -53,6 +53,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
(((exec).a_info & ~(0x3ff<<16)) | (((machtype)&0xff) << 16)))
#define N_SET_FLAGS(exec, flags) \
((exec).a_info = ((exec).a_info & 0xffff) | (flags & 0xffff))
+#define N_SET_FLAGS(exec, flags) \
+ ((exec).a_info = \
+ (((exec).a_info & ~(0x3f<<26)) | (((flags)&0x3f) << 26)))
#include "bfd.h"
#include "sysdep.h"