Skip to content

Commit

Permalink
uclinux: error message when FLAT reloc symbol is invalid, v2
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jun Sun authored and Greg Ungerer committed Apr 21, 2010
1 parent 05ce7bf commit d7dfee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/binfmt_flat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d7dfee3

Please sign in to comment.