From: Jeroen Hofstee Date: Sat, 12 Jul 2014 13:22:13 +0000 (+0200) Subject: common: env_common: make env_get_char_spec __weak X-Git-Tag: v2014.10-rc1~122 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0b7df656570e9126616529d03d99261956081bc4;p=u-boot common: env_common: make env_get_char_spec __weak Signed-off-by: Jeroen Hofstee --- diff --git a/common/env_common.c b/common/env_common.c index cd7b4cd1df..3b979bcb98 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -27,12 +27,10 @@ struct hsearch_data env_htab = { .change_ok = env_flags_validate, }; -static uchar __env_get_char_spec(int index) +__weak uchar env_get_char_spec(int index) { return *((uchar *)(gd->env_addr + index)); } -uchar env_get_char_spec(int) - __attribute__((weak, alias("__env_get_char_spec"))); static uchar env_get_char_init(int index) {