All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Niklas Cassel via buildroot <buildroot@buildroot.org>
Cc: Niklas Cassel <niklas.cassel@wdc.com>
Subject: Re: [Buildroot] [PATCH] package/elf2flt: fix error when building gdb for target on m68k
Date: Sun, 5 Feb 2023 15:15:02 +0100	[thread overview]
Message-ID: <20230205151502.07fd434d@windsurf> (raw)
In-Reply-To: <20230117153503.2075602-1-niklas.cassel@wdc.com>

Hello Niklas,

On Tue, 17 Jan 2023 16:35:03 +0100
Niklas Cassel via buildroot <buildroot@buildroot.org> wrote:

> Thomas reported that m68k fails to build when enabling BR2_PACKAGE_GDB.
> 
> It fails when building gdb for the target with the following error:
> elf2flt: ERROR: text=0x3c826 overlaps data=0x256e0 ?
> 
> It turns out that the gdb binary has another problematic input section
> (.gcc_except_table), which causes elf2flt to try to append to the .text
> output section, after it has already moved on with appending sections
> to the .data output section.
> 
> elf2flt cannot append to a previous output section once it has moved on
> to another output section.
> 
> Update the existing elf2flt patch to also add an exception for
> .gcc_except_table.
> 
> Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
> ---
>  ...l-error-regression-on-m68k-xtensa-ri.patch | 47 ++++++++++---------
>  1 file changed, 24 insertions(+), 23 deletions(-)

Many, many thanks for looking into this. It's a bit annoying that those
special sections have to be special-cased. Hopefully this will not
encounter too many of those special cases.

In the mean time, I've applied your patch to master. Thanks again!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      reply	other threads:[~2023-02-05 14:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-17 15:35 [Buildroot] [PATCH] package/elf2flt: fix error when building gdb for target on m68k Niklas Cassel via buildroot
2023-02-05 14:15 ` Thomas Petazzoni via buildroot [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=20230205151502.07fd434d@windsurf \
    --to=buildroot@buildroot.org \
    --cc=niklas.cassel@wdc.com \
    --cc=thomas.petazzoni@bootlin.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.