This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Dlltool: prevent GAS warnings about clipped .short values
- To: binutils at sourceware dot cygnus dot com
- Subject: Dlltool: prevent GAS warnings about clipped .short values
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Wed, 3 Nov 1999 10:56:09 GMT
- Reply-to: nickc at cygnus dot co dot uk
Hi Guys,
I have just checked in the following small patch. It prevents
dlltool from issue .short directives that look like this:
.short 0xffffd300
which will generate warning messages from the assembler about
truncated .short directives.
Cheers
Nick
1999-11-03 Nick Clifton <nickc@cygnus.com>
* dlltool.c (flush_page): Clip short values to prevent warnings
from the assembler.
Index: dlltool.c
===================================================================
RCS file: /cvs/binutils/binutils/binutils/dlltool.c,v
retrieving revision 1.14
diff -p -r1.14 dlltool.c
*** dlltool.c 1999/10/26 10:10:51 1.14
--- dlltool.c 1999/11/03 10:54:23
*************** flush_page (f, need, page_addr, on_page)
*** 1572,1581 ****
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);
! }
/* And padding */
if (on_page & 1)
fprintf (f, "\t%s\t0x%x\n", ASM_SHORT, 0 | 0x0000);
--- 1572,1582 ----
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) & 0xffff);
!
/* And padding */
if (on_page & 1)
fprintf (f, "\t%s\t0x%x\n", ASM_SHORT, 0 | 0x0000);