aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-11-09 01:04:56 +0000
committerIan Lance Taylor <ian@airs.com>1995-11-09 01:04:56 +0000
commit1b3b0c0343cb794db4efcdac42499dc5f304c11d (patch)
treeba42471b4794b0060e6cf57052a77d8b2844f2ad
parent6a649eda40ae1e08ee555950d96f613ee2bb5dec (diff)
downloadgdb-1b3b0c0343cb794db4efcdac42499dc5f304c11d.zip
gdb-1b3b0c0343cb794db4efcdac42499dc5f304c11d.tar.gz
gdb-1b3b0c0343cb794db4efcdac42499dc5f304c11d.tar.bz2
Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
* coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than 0xffff0000.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/coff-a29k.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 783ea82..0f1dda4 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
+
+ * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
+ 0xffff0000.
+
Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com>
* libbfd.c (bfd_get_file_window): Change writable parameter from
diff --git a/bfd/coff-a29k.c b/bfd/coff-a29k.c
index 4673041..633899d 100644
--- a/bfd/coff-a29k.c
+++ b/bfd/coff-a29k.c
@@ -45,7 +45,7 @@ static boolean coff_a29k_adjust_symndx
#define EXTRACT_HWORD(WORD) \
((((WORD) & 0x00ff0000) >> 8) | ((WORD)& 0xff))
#define SIGN_EXTEND_HWORD(HWORD) \
- ((HWORD) & 0x8000 ? (HWORD)|0xffff0000 : (HWORD))
+ ((HWORD) & 0x8000 ? (HWORD)|(~0xffffL) : (HWORD))
/* Provided the symbol, returns the value reffed */
static long