X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=object.c;fp=object.c;h=9294abefa8ed3431323b1e80f839f60ba912ce7a;hp=7fd8fcce06ed190924fd0c175ff970f5322764e2;hb=d1f5f1caccb26da6a3da7fc00b94b79000a55302;hpb=3c7505f2f4929a549ab3c51de73ebe7c4fcf1d72 diff --git a/object.c b/object.c index 7fd8fcc..9294abe 100644 --- a/object.c +++ b/object.c @@ -229,6 +229,7 @@ uint8_t * AddELFSymEntry(uint8_t * buf, SYM * sym, int globflag) int DepositELFSectionHeader(uint8_t * ptr, uint32_t name, uint32_t type, uint32_t flags, uint32_t addr, uint32_t offset, uint32_t size, uint32_t link, uint32_t info, uint32_t addralign, uint32_t entsize) { chptr = ptr; + ch_size = 0; D_long(name); D_long(type); D_long(flags); @@ -264,6 +265,7 @@ printf("DepositELFSHSTEntry: s = \"%s\"\n", s); uint32_t DepositELFSymbol(uint8_t * ptr, uint32_t name, uint32_t addr, uint32_t size, uint8_t info, uint8_t other, uint16_t shndx) { chptr = ptr; + ch_size = 0; D_long(name); D_long(addr); D_long(size);