From: Schwarz,Andre <andre.schwarz@matrix-vision.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] powerpc: do not fixup NULL ptrs
Date: Sun, 24 Oct 2010 22:08:19 +0200 (CEST) [thread overview]
Message-ID: <1702240919.111.1287950899754.JavaMail.open-xchange@proteus> (raw)
In-Reply-To: <20101018203948.676071359B3@gemini.denx.de>
All,
Wolfgang Denk <wd@denx.de> hat am 18. Oktober 2010 um 22:39 geschrieben:
> Dear Joakim Tjernlund,
>
> In message <1287049904-18917-1-git-send-email-Joakim.Tjernlund@transmode.se>
> you wrote:
> > The fixup routine must not fixup NULL pointers.
> > Problem can be seen by
> >? char *testfun(void) __attribute__((weak));
> >? char *(*myfun)(void) = testfun;
> >
> > Then add
> >? ?printf("myfun:%p, &myfun:%p\n", myfun, &myfun);
> > before relocation and after relocation.
> > myfun should be NULL in both cases but it is not.
> >
> > Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> > ---
> >? arch/powerpc/cpu/74xx_7xx/start.S |? ? 4 +++-
> >? arch/powerpc/cpu/mpc512x/start.S? |? ? 4 +++-
> >? arch/powerpc/cpu/mpc5xx/start.S? ?|? ? 4 +++-
> >? arch/powerpc/cpu/mpc5xxx/start.S? |? ? 4 +++-
> >? arch/powerpc/cpu/mpc8220/start.S? |? ? 4 +++-
> >? arch/powerpc/cpu/mpc824x/start.S? |? ? 4 +++-
> >? arch/powerpc/cpu/mpc8260/start.S? |? ? 4 +++-
> >? arch/powerpc/cpu/mpc83xx/start.S? |? ? 4 +++-
> >? arch/powerpc/cpu/mpc85xx/start.S? |? ? 4 +++-
> >? arch/powerpc/cpu/mpc86xx/start.S? |? ? 4 +++-
> >? arch/powerpc/cpu/mpc8xx/start.S? ?|? ? 4 +++-
> >? arch/powerpc/cpu/ppc4xx/start.S? ?|? ? 4 +++-
> >? 12 files changed, 36 insertions(+), 12 deletions(-)
>
> Applied, thanks.?
has anybody ever tested this ?
Although it looks obvious and correct this patch is somewhat intrusive and
breaks at least two of our (MPC83xx) boards.
?
I've asked Joakim already for some clarification :
?
http://lists.denx.de/pipermail/u-boot/2010-October/080121.html
?
Since I assume Wolfgang won't accept a board specific "add 4 nops after
_start"-patch I'd like to solve this without trial and error.
?
Of course digging into this is beyond my knowledge and any help would be
appreciated.
I simply can't think of being the only one having this issue...
?
I'm running U-Boot TOT with ELDK-4.2 toolchain.
Regards,
Andr?
MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
next prev parent reply other threads:[~2010-10-24 20:08 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-14 9:51 [U-Boot] [PATCH] powerpc: do not fixup NULL ptrs Joakim Tjernlund
2010-10-18 20:39 ` Wolfgang Denk
2010-10-24 20:08 ` Schwarz, Andre [this message]
2010-10-24 20:18 ` Wolfgang Denk
2010-10-24 20:33 ` Schwarz, Andre
2010-10-24 20:48 ` Joakim Tjernlund
2010-10-25 8:24 ` Schwarz, Andre
2010-10-25 13:50 ` Andre Schwarz
2010-10-25 14:32 ` Joakim Tjernlund
2010-10-25 14:46 ` Andre Schwarz
2010-10-25 15:36 ` Joakim Tjernlund
2010-10-25 17:16 ` Wolfgang Denk
2010-10-25 17:45 ` Andre Schwarz
2010-10-25 19:14 ` Wolfgang Denk
2010-10-26 10:28 ` Andre Schwarz
2010-10-26 12:34 ` Andre Schwarz
2010-10-26 12:49 ` Joakim Tjernlund
2010-11-04 9:10 ` Joakim Tjernlund
2010-11-04 9:57 ` Wolfgang Denk
2010-11-04 10:47 ` Joakim Tjernlund
2010-11-04 10:54 ` Joakim Tjernlund
2010-11-04 11:16 ` Wolfgang Denk
2010-11-04 12:19 ` Joakim Tjernlund
2010-11-04 12:46 ` Wolfgang Denk
2010-11-04 12:58 ` Joakim Tjernlund
2010-11-04 13:07 ` Wolfgang Denk
2010-11-04 13:11 ` Joakim Tjernlund
2010-11-04 10:58 ` Andy Pont
2010-11-04 11:04 ` Joakim Tjernlund
2010-11-04 12:14 ` Andre Schwarz
2010-11-04 12:18 ` Joakim Tjernlund
2010-11-04 12:28 ` Andre Schwarz
[not found] ` <OF350A930F.C39462D9-ONC <4CD2B5DF.2080400@matrix-vision.de>
2010-11-04 13:01 ` Joakim Tjernlund
2010-11-04 13:32 ` Andre Schwarz
2010-11-04 14:06 ` Joakim Tjernlund
2010-11-04 14:49 ` Andre Schwarz
2010-11-04 15:10 ` Joakim Tjernlund
2010-11-04 16:53 ` Andre Schwarz
2010-11-04 10:59 ` Reinhard Meyer
2010-11-04 10:00 ` Andre Schwarz
2010-11-04 9:50 ` Wolfgang Denk
2010-11-04 10:21 ` Joakim Tjernlund
2010-10-24 20:44 ` Joakim Tjernlund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1702240919.111.1287950899754.JavaMail.open-xchange@proteus \
--to=andre.schwarz@matrix-vision.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox