]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
uclinux: error message when FLAT reloc symbol is invalid, v2
authorJun Sun <jsun@junsun.net>
Fri, 1 Jan 2010 01:28:52 +0000 (17:28 -0800)
committerGreg Ungerer <gerg@uclinux.org>
Wed, 21 Apr 2010 03:28:49 +0000 (13:28 +1000)
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 <jsun@junsun.net>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
fs/binfmt_flat.c

index e0e769bdca59918bc0cc2f6c202ccae7bdcd5546..49566c1687d84943d9187a12ff2d1490c8ec6ad2 100644 (file)
@@ -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;
        }