]> git.baikalelectronics.ru Git - arm-tf.git/commit
Disable PIE compilation option
authordavid cunado <david.cunado@arm.com>
Thu, 30 Nov 2017 21:58:01 +0000 (21:58 +0000)
committerDavid Cunado <david.cunado@arm.com>
Thu, 14 Dec 2017 23:36:15 +0000 (23:36 +0000)
commitf7ec31db2db3c69a7bd970f4e7fd829e7cc0c53a
tree2cfec4b04d21a10af6fb1a9d1769f3c54bca74a0
parent842c00eb44b4f2d4c4ad4055c7f82a82721e2034
Disable PIE compilation option

ARM TF does not work correctly if built with a version of gcc
that is configured to use PIE by default (e.g. Debian Stretch).

This patch identifies when such a version of gcc is being used
(by searching for --enable-default-pie) and adds -fno-PIE option
to TF_CFLAGS.

fixes arm-software/tf-issues#519

Change-Id: I2322122c49841746d35d152694e14f6f73beb0fd
Signed-off-by: David Cunado <david.cunado@arm.com>
Co-Authored-by: Evan Lloyd <evan.lloyd@arm.com>
Tested-by: Steve Capper <steve.capper@arm.com>
Tested-by: Alexei Fedorov <alexei.fedorov@arm.com>
Makefile