From: Jun Sun Date: Fri, 1 Jan 2010 01:28:52 +0000 (-0800) Subject: uclinux: error message when FLAT reloc symbol is invalid, v2 X-Git-Tag: v2.6.34-rc6~74^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7dfee3f5db5575b1d838744559c3c9bb351f74f;p=profile%2Fcommon%2Fkernel-common.git uclinux: error message when FLAT reloc symbol is invalid, v2 This patch fixes a cosmetic error in printk. Text segment and data/bss segment are allocated from two different areas. It is not meaningful to give the diff between them in the error reporting messages. Signed-off-by: Jun Sun Signed-off-by: Greg Ungerer --- diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index e0e769b..49566c1 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c @@ -355,7 +355,7 @@ calc_reloc(unsigned long r, struct lib_info *p, int curid, int internalp) if (!flat_reloc_valid(r, start_brk - start_data + text_len)) { printk("BINFMT_FLAT: reloc outside program 0x%x (0 - 0x%x/0x%x)", - (int) r,(int)(start_brk-start_code),(int)text_len); + (int) r,(int)(start_brk-start_data+text_len),(int)text_len); goto failed; }