All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] php: disable on configurations using BR2_BINFMT_FLAT
Date: Mon, 26 Feb 2018 23:45:59 +0100	[thread overview]
Message-ID: <874lm3qsig.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20180226203429.25294-2-thomas.petazzoni@bootlin.com> (Thomas Petazzoni's message of "Mon, 26 Feb 2018 21:34:29 +0100")

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > BR2_BINFMT_FLAT configurations require the use of elf2flt. However,
 > PHP uses -export-dynamic which breaks badly with elf2flt. Even a
 > simple program fails to build:

 > $ ./output/host/bin/arm-linux-gcc -Wl,-export-dynamic -o toto toto.c
 > /home/thomas/projets/buildroot/output/host/opt/ext-toolchain/arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real: section .junk LMA [0000000000000000,0000000000000027] overlaps section .text LMA [0000000000000000,0000000000006d07]

 > -export-dynamic is clearly not useful for FLAT configurations, which
 > are always statically linked, but it's quite a bit of work to change
 > the PHP build system to use it only conditionall.

 > It looks more like an interaction bug between gcc (which wants to put
 > the .text section at address 0x0 in its linker script) and elf2flt,
 > which wants to put its .junk section (containing the .rel.text stuff)
 > also at address 0x0.

 > Fixes (works around) the "section overlap" part of:

 >   http://autobuild.buildroot.net/results/35cbed8927bb10500ecf2816aa728ea240a0be21/

 > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
 > Cc: Waldemar Brodkorb <wbx@openadk.org>

Committed, thanks.

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2018-02-26 22:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-26 20:34 [Buildroot] [PATCH 1/2] php: add patch to fix build on static-only systems Thomas Petazzoni
2018-02-26 20:34 ` [Buildroot] [PATCH 2/2] php: disable on configurations using BR2_BINFMT_FLAT Thomas Petazzoni
2018-02-26 22:45   ` Peter Korsgaard [this message]
2018-02-26 22:45 ` [Buildroot] [PATCH 1/2] php: add patch to fix build on static-only systems Peter Korsgaard

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=874lm3qsig.fsf@dell.be.48ers.dk \
    --to=peter@korsgaard.com \
    --cc=buildroot@busybox.net \
    /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.