public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@secretlab.ca>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Bug in malloc()?
Date: Mon, 29 Oct 2007 14:53:12 -0600	[thread overview]
Message-ID: <fa686aa40710291353t492f384ek613409bee4cb71cb@mail.gmail.com> (raw)
In-Reply-To: <36D7B34A3A79F84F82FA0C154F299F250594FF8C@E03MVX1-UKDY.domain1.systemhost.net>

On 10/29/07, michael.firth at bt.com <michael.firth@bt.com> wrote:
> >
> > Yes, I saw that too with sometimes with the 83xx tree.  Sometimes it
> machine checks, sometimes it goes in an infinite loop.
>
> This looks like the same issue I'm seeing trying to update my MPC834x
> based system to u-boot-1.3.0-rcx. Under a BDI2000 it seems that several
> of the malloc related pointers have addresses in flash, while in my
> older u-boot version they are correctly pointing to addresses in RAM.
>
> From this thread, it seems that three fixes have been recommended:
>
> 1) Disable "CONFIG_RELOC_FIXUP_WORKS" in the CPU header files
> 2) Backout some changes which affect the fixup operations (?)
> 3) Migrate to a newer compiler version

Actually, #3 is migrate to an *older* compiler version.  :-(
Unfortunately EABI relocation seems to be a rather undocumented thing.

If you can use an older compiler, #3 is the easiest workaround.  I use
ELDK 4.1 personally which include GCC 4.0.0.  You can backout the
enabling of CONFIG_RELOC_FIXUP_WORKS for 82xx, but I don't want to
apply that change to mainline if at all possible.  I'd rather get
relocation working properly for all compilers once and for all.

>
> Which of these three options is the best to take, or has this thread not
> yet reached that conclusion?
>
> Thanks
>
> Michael
>


-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195

  reply	other threads:[~2007-10-29 20:53 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-25 22:35 [U-Boot-Users] Bug in malloc()? Timur Tabi
2007-10-26 11:34 ` Jerry Van Baren
2007-10-26 14:20   ` Rune Torgersen
2007-10-26 14:27     ` Timur Tabi
2007-10-26 14:41       ` Rune Torgersen
2007-10-26 14:45       ` Rune Torgersen
2007-10-26 15:01         ` Timur Tabi
     [not found]           ` <DCEAAC0833DD314AB0B58112AD99B93B038A2914@ismail.innsys.innovsys.com>
     [not found]             ` <472203F8.3030800@freescale.com>
     [not found]               ` <DCEAAC0833DD314AB0B58112AD99B93B038A292D@ismail.innsys.innovsys.com>
     [not found]                 ` <47220576.2080700@freescale.com>
2007-10-26 15:23                   ` Rune Torgersen
2007-10-26 16:56             ` Timur Tabi
2007-10-26 22:18         ` Timur Tabi
2007-10-26 22:27           ` Grant Likely
2007-10-26 22:33             ` Timur Tabi
2007-10-26 22:36               ` Rune Torgersen
2007-10-26 22:39                 ` Timur Tabi
2007-10-29 20:45                   ` michael.firth at bt.com
2007-10-29 20:53                     ` Grant Likely [this message]
2007-10-29 20:55                       ` Timur Tabi
2007-10-29 20:59                         ` Rune Torgersen
2007-10-29 21:19                           ` michael.firth at bt.com
2007-10-29 21:35                             ` Rune Torgersen
2007-10-29 21:39                               ` michael.firth at bt.com
2007-10-29 21:42                                 ` Grant Likely
2007-10-29 21:41                           ` Grant Likely
2007-10-29 21:55                             ` Rune Torgersen
2007-10-26 15:04       ` Rune Torgersen

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=fa686aa40710291353t492f384ek613409bee4cb71cb@mail.gmail.com \
    --to=grant.likely@secretlab.ca \
    --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