kumquat-buildroot/package/php
Thomas Petazzoni e0eec7a4f7 php: disable on configurations using BR2_BINFMT_FLAT
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>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-02-26 23:45:39 +01:00
..
0001-acinclude.m4-don-t-unset-variables.patch
0002-iconv-tweak-iconv-detection.patch
0003-configure-disable-the-phar-tool.patch
0004-OPcache-flock-mechanism-is-obviously-linux-so-force-.patch
0005-ext-fileinfo-config.m4-allow-cache-answer-for-strcas.patch
0006-avoid-bfin-gcc-segfault.patch
0007-Call-apxs-with-correct-prefix.patch
0008-ext-sockets-make-AI_IDN-usage-optional.patch php: fix build on C libraries that don't provide AI_IDN 2018-02-26 20:55:52 +01:00
0009-main-php_ini.c-build-empty-php_load_zend_extension_c.patch php: add patch to fix build on static-only systems 2018-02-26 23:45:07 +01:00
Config.ext
Config.in php: disable on configurations using BR2_BINFMT_FLAT 2018-02-26 23:45:39 +01:00
php-fpm.conf
php.hash
php.mk