freemyipod r617 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r616‎ | r617 | r618 >
Date:00:43, 17 February 2011
Author:theseven
Status:new
Tags:
Comment:
emCORE: Zero .bss section of apps/libs
Modified paths:
  • /emcore/trunk/execimage.c (modified) (history)

Diff [purge]

Index: emcore/trunk/execimage.c
@@ -111,6 +111,7 @@
112112 *((void**)(image + reloc)) = image + data;
113113 }
114114 if (tempsize != finalsize) realloc(image, finalsize); /* Can only shrink => safe */
 115+ memset(image + textsize, 0, bsssize);
115116 clean_dcache();
116117 invalidate_icache();
117118 struct scheduler_thread* thread;