public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] GCC 5.2 issue on imx28
Date: Thu, 13 Aug 2015 09:23:57 -0400	[thread overview]
Message-ID: <20150813132357.GV25532@bill-the-cat> (raw)
In-Reply-To: <yw1xwpxkflju.fsf@unicorn.mansr.com>

On Tue, Jul 28, 2015 at 02:39:49PM +0100, M?ns Rullg?rd wrote:

> Otavio Salvador <otavio.salvador@ossystems.com.br> writes:
> 
> > Hello folks,
> >
> > OE-Core is preparing for upgrade to GCC 5.2 as default compiler and
> > mx28 is failing[1] to build with it.
> >
> > 1. http://errors.yoctoproject.org/Errors/Details/13878/
> >
> > I am not a linker guy so could someone shed any light on this?
> 
> There are two errors reports:
> 
> 1. An undefined reference to the symbol "lowlevel_init"
> 2. A complaint about the ".rel.plt" section not being handled by the
>    linker script.
> 
> The second error is probably caused by the first.  A quick grep turns up
> this snippet in arch/arm/cpu/arm926ejs/mxs/mxs.c:
> 
> /* Lowlevel init isn't used on i.MX28, so just have a dummy here */
> inline void lowlevel_init(void) {}
> 
> The semantics for non-static functions declared inline have changed in
> gcc5, causing the above (empty) function not to be emitted as an
> external symbol.
> 
> Since that function is only referenced from start.S, it should not be
> declared inline at all.  This patch should thus fix your problem:
> Tested-by: Otavio Salvador <otavio@ossystems.com.br>
> 
> diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c b/arch/arm/cpu/arm926ejs/mxs/mxs.c
> index ef130ae..b1d8721 100644

After a bit re-wording of the commit message, applied to u-boot/master,
thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150813/b1be4463/attachment.sig>

      parent reply	other threads:[~2015-08-13 13:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-28 13:19 [U-Boot] GCC 5.2 issue on imx28 Otavio Salvador
2015-07-28 13:37 ` Wolfgang Denk
2015-07-28 13:39 ` Måns Rullgård
2015-07-28 17:16   ` Otavio Salvador
2015-08-05 19:17   ` Jörg Krause
2015-08-05 19:23     ` Måns Rullgård
2015-08-06  8:33       ` Jörg Krause
2015-08-06 10:45         ` Måns Rullgård
2015-08-13 13:23   ` Tom Rini [this message]

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=20150813132357.GV25532@bill-the-cat \
    --to=trini@konsulko.com \
    --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