aboutsummaryrefslogtreecommitdiff
path: root/binutils/dlltool.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-11-03 10:56:31 +0000
committerNick Clifton <nickc@redhat.com>1999-11-03 10:56:31 +0000
commitf932f8e1da06ea6a5c7e5a9a8dc53af6db8e36fe (patch)
tree55b619931e9ea053fce093cfe7c6f13f0ffd0c62 /binutils/dlltool.c
parent832fc2027d629765aca3b87e19f8e750dcf168d2 (diff)
downloadgdb-f932f8e1da06ea6a5c7e5a9a8dc53af6db8e36fe.zip
gdb-f932f8e1da06ea6a5c7e5a9a8dc53af6db8e36fe.tar.gz
gdb-f932f8e1da06ea6a5c7e5a9a8dc53af6db8e36fe.tar.bz2
clip shorts to prevent assembler warnings
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r--binutils/dlltool.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index ed99d4f..908f798 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -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);