X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=mark.c;h=2a089c386a663830a3f6e0bff7538582ab64288a;hp=955fcab0c7a81d0535c4e06b625be8dab1fae07a;hb=81c752326a21408c84f98a18aed065491a88b779;hpb=ada93ab0c3763d4a4ab607cbc73c24d74bc94ff4 diff --git a/mark.c b/mark.c index 955fcab..2a089c3 100644 --- a/mark.c +++ b/mark.c @@ -221,7 +221,7 @@ uint32_t MarkImage(register uint8_t * mp, uint32_t siz, uint32_t tsize, int okfl w |= symbol->senv << 3; *wp++ = w >> 8; - *wp = w; + *wp = (uint8_t)w; } } else @@ -483,6 +483,7 @@ uint32_t CreateELFRelocationRecord(uint8_t * buf, uint8_t * secBuf, uint16_t sec // Setup pointer for D_long/word/byte macros chptr = buf; + ch_size = 0; for(MCHUNK * mch=firstmch; mch!=NULL; mch=mch->mcnext) {