]> code.ossystems Code Review - openembedded-core.git/commit
ovmf: Fix build with toolchain defaulting to PIE
authorKhem Raj <raj.khem@gmail.com>
Tue, 4 Jul 2017 15:46:03 +0000 (08:46 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Jul 2017 12:33:58 +0000 (13:33 +0100)
commit85476cdb19d5c383966ba753a71eaeb3622bd6b4
treedd6839c67df5fde53247a37739081fd6a31be9d3
parent4f3a9ccdb1d45804f4c094589e69e0bc87dc9c62
ovmf: Fix build with toolchain defaulting to PIE

GCC44_IA32_X64_DLINK_COMMON and GCC49_IA32_X64_DLINK_COMMON
variables add to final linker flags that ovmf build forms
on its own, so trying to inject it from environment will not
work.

Here we add option to disable pie during linking, which should
have been accompanied with correcponding gcc/cflags.

Fixes

|   /mnt/a/oe/build/tmp/work/i586-bec-linux/ovmf/git-r0/git/Build/OvmfIa32/RELEASE_GCC5/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTPUT/./Facs.dll: Bad definition for symbol '<unknown>'@0 or unsupported symbol type.  For example, absolute and undefined symbols are not supported.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/recipes-core/ovmf/ovmf/0001-ia32-Dont-use-pie.patch