summaryrefslogtreecommitdiff
path: root/output/outelf64.c
diff options
context:
space:
mode:
authorChuck Crayne <ccrayne@users.sourceforge.net>2007-04-28 22:18:04 +0000
committerChuck Crayne <ccrayne@users.sourceforge.net>2007-04-28 22:18:04 +0000
commit6e61733e3801e2db3e8b0375060ce75773c8bc77 (patch)
treeb885a288a3f9dd280b0fa5ea25a4942a7c271482 /output/outelf64.c
parent26d3de32171a05eb468d40329a838b4858f10538 (diff)
downloadnasm-6e61733e3801e2db3e8b0375060ce75773c8bc77.tar.gz
nasm-6e61733e3801e2db3e8b0375060ce75773c8bc77.tar.bz2
nasm-6e61733e3801e2db3e8b0375060ce75773c8bc77.zip
Eliminate shift count warnings when building on 32-bit systems
Remove define for DEBUG
Diffstat (limited to 'output/outelf64.c')
-rw-r--r--output/outelf64.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/output/outelf64.c b/output/outelf64.c
index 883d900..6a2843a 100644
--- a/output/outelf64.c
+++ b/output/outelf64.c
@@ -17,8 +17,6 @@
#include "nasmlib.h"
#include "outform.h"
-#define DEBUG 0
-
/* Definitions in lieu of elf.h */
#define SHT_PROGBITS 1
@@ -1107,8 +1105,8 @@ static struct SAA *elf_build_symtab(int32_t *len, int32_t *local)
WRITELONG(p, 1); /* we know it's 1st thing in strtab */
WRITESHORT(p, 4); /* type FILE */
WRITESHORT(p, SHN_ABS);
- WRITEDLONG(p, 0L); /* no value */
- WRITEDLONG(p, 0L); /* no size either */
+ WRITEDLONG(p, (uint64_t) 0); /* no value */
+ WRITEDLONG(p, (uint64_t) 0); /* no size either */
saa_wbytes(s, entry, 24L);
*len += 24;
(*local)++;
@@ -1122,8 +1120,8 @@ static struct SAA *elf_build_symtab(int32_t *len, int32_t *local)
WRITELONG(p, 0); /* no symbol name */
WRITESHORT(p, 3); /* local section-type thing */
WRITESHORT(p, (i == 1 ? SHN_ABS : i - 1)); /* the section id */
- WRITEDLONG(p, 0L); /* offset zero */
- WRITEDLONG(p, 0L); /* size zero */
+ WRITEDLONG(p, (uint64_t) 0); /* offset zero */
+ WRITEDLONG(p, (uint64_t) 0); /* size zero */
saa_wbytes(s, entry, 24L);
*len += 24;
(*local)++;
@@ -1187,7 +1185,7 @@ static struct SAA *elf_build_reltab(int32_t *len, struct Reloc *r)
p = entry;
WRITEDLONG(p, r->address);
WRITEDLONG(p, (sym << 32) + r->type);
- WRITEDLONG(p, 0L);
+ WRITEDLONG(p, (uint64_t) 0);
saa_wbytes(s, entry, 24L);
*len += 24;