Author: wmb
Date: Tue Jan 25 09:55:42 2011
New Revision: 2149
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2149
Log:
Reverted change to inflate.c introduced by r2097. Without the "section text_inflate" attribute on the inflate() function, the GCC optimizer moves code so that huft_build() appears first in the file. OFW expects inflate() to be at the beginning of the image.
Modified:
forth/wrapper/zip/inflate.c
Modified: forth/wrapper/zip/inflate.c
==============================================================================
--- forth/wrapper/zip/inflate.c Tue Jan 25 04:07:13 2011 (r2148)
+++ forth/wrapper/zip/inflate.c Tue Jan 25 09:55:42 2011 (r2149)
@@ -165,7 +165,7 @@
* Return size of clear.
*/
int
-inflate(struct workspace *wsptr, int nohdr, u_char* clear, u_char *compr);
+inflate(struct workspace *wsptr, int nohdr, u_char* clear, u_char *compr) __attribute__((section ("text_inflate")));
int
inflate(struct workspace *wsptr, int nohdr, u_char* clear, u_char *compr)