clip shorts to prevent assembler warnings
authorNick Clifton <nickc@redhat.com>
Wed, 3 Nov 1999 10:56:31 +0000 (10:56 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 3 Nov 1999 10:56:31 +0000 (10:56 +0000)
binutils/ChangeLog
binutils/dlltool.c

index 7cf4f71f73ac08cb002c8d0bc7990c8cfeb28ce3..4955c13320b2b4f69e6babf0300969c7e075e2a5 100644 (file)
@@ -1,3 +1,8 @@
+1999-11-03  Nick Clifton  <nickc@cygnus.com>
+
+       * dlltool.c (flush_page): Clip short values to prevent warnings
+       from the assembler.
+
 1999-10-27  Fred Fish  <fnf@cygnus.com>
 
        * objdump.c (display_bfd): Break into two functions.  The
index ed99d4f673920674877d9b16c0dd9397dc97d64e..908f798096d81865c7aaf3715a459ba292e7da3e 100644 (file)
@@ -1572,10 +1572,11 @@ flush_page (f, need, page_addr, on_page)
           ASM_LONG,
           (on_page * 2) + (on_page & 1) * 2 + 8,
           ASM_C);
+  
   for (i = 0; i < on_page; i++)
-    {
-      fprintf (f, "\t%s\t0x%lx\n", ASM_SHORT, (need[i] - page_addr) | 0x3000);
-    }
+    fprintf (f, "\t%s\t0x%lx\n", ASM_SHORT,
+            ((need[i] - page_addr) | 0x3000) & 0xffff);
+
   /* And padding */
   if (on_page & 1)
     fprintf (f, "\t%s\t0x%x\n", ASM_SHORT, 0 | 0x0000);