From: Alpha Lam Date: Thu, 24 May 2012 04:35:35 +0000 (-0700) Subject: asm_*_offsets to define variables as constants X-Git-Tag: 1.0_branch~12^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49f7f05f52a0b75d61e1381033d6472bd119c2fd;p=profile%2Fivi%2Flibvpx.git asm_*_offsets to define variables as constants This change is to allow obj_int_extract to extract all integers in the data segment. With the const keyword these variables are forced into the .rodata segment even for zero variable value. We had a problem before that zero valueed variables would get assigned to BSS segment that fooled obj_int_extract to give incorrect values. Change-Id: Icd94f80a8ab356879894ca508bf132d20b865299 --- diff --git a/vpx_ports/asm_offsets.h b/vpx_ports/asm_offsets.h index d3b4fc7..fc1287e 100644 --- a/vpx_ports/asm_offsets.h +++ b/vpx_ports/asm_offsets.h @@ -23,7 +23,7 @@ #define BEGIN int main(void) { #define END return 0; } #else -#define DEFINE(sym, val) int sym = val; +#define DEFINE(sym, val) const int sym = val; #define BEGIN #define END #endif