* [PATCH] error message when FLAT reloc symbol is invalid, v2
@ 2010-01-01 1:28 Jun Sun
2010-01-01 6:24 ` [uClinux-dev] " Mike Frysinger
2010-01-11 3:33 ` Greg Ungerer
0 siblings, 2 replies; 3+ messages in thread
From: Jun Sun @ 2010-01-01 1:28 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel, uclinux-dev
[-- Attachment #1: Type: text/plain, Size: 26 bytes --]
See the attachement.
Jun
[-- Attachment #2: 091231-flat-invalid-reloc-symbol-output.patch --]
[-- Type: text/plain, Size: 789 bytes --]
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>
---
diff -Nru linux-2.6.32.2/fs/binfmt_flat.c.orig linux-2.6.32.2/fs/binfmt_flat.c
--- linux-2.6.32.2/fs/binfmt_flat.c.orig 2009-12-18 14:27:07.000000000 -0800
+++ linux-2.6.32.2/fs/binfmt_flat.c 2009-12-26 08:22:43.000000000 -0800
@@ -355,7 +355,7 @@
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;
}
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [uClinux-dev] [PATCH] error message when FLAT reloc symbol is invalid, v2
2010-01-01 1:28 [PATCH] error message when FLAT reloc symbol is invalid, v2 Jun Sun
@ 2010-01-01 6:24 ` Mike Frysinger
2010-01-11 3:33 ` Greg Ungerer
1 sibling, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2010-01-01 6:24 UTC (permalink / raw)
To: uclinux-dev; +Cc: Jun Sun, linux-arm-kernel, linux-kernel
[-- Attachment #1: Type: Text/Plain, Size: 108 bytes --]
On Thursday 31 December 2009 20:28:52 Jun Sun wrote:
> See the attachement.
looks good to me, thanks
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [uClinux-dev] [PATCH] error message when FLAT reloc symbol is invalid, v2
2010-01-01 1:28 [PATCH] error message when FLAT reloc symbol is invalid, v2 Jun Sun
2010-01-01 6:24 ` [uClinux-dev] " Mike Frysinger
@ 2010-01-11 3:33 ` Greg Ungerer
1 sibling, 0 replies; 3+ messages in thread
From: Greg Ungerer @ 2010-01-11 3:33 UTC (permalink / raw)
To: uClinux development list; +Cc: linux-arm-kernel, linux-kernel
Hi Jun,
Jun Sun wrote:
> See the attachement.
That looks good. I'll apply to the m68knommu git tree and push to
Linus in the next merge window (for 2.6.34).
Regards
Greg
--
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: gerg@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
8 Gardner Close FAX: +61 7 3217 5323
Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-11 3:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-01 1:28 [PATCH] error message when FLAT reloc symbol is invalid, v2 Jun Sun
2010-01-01 6:24 ` [uClinux-dev] " Mike Frysinger
2010-01-11 3:33 ` Greg Ungerer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox