From 2613e0ecfede76c34499170fc464a258977456a636bb14ef409f6e01ea9992ec Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin Date: Mon, 8 May 2017 08:20:33 +0000 Subject: [PATCH] Accepting request 493267 from home:msmeissn:branches:Virtualization - ovmf-pie.patch: add -fPIE to the Common build Makefile to allow a global PIE build. OBS-URL: https://build.opensuse.org/request/show/493267 OBS-URL: https://build.opensuse.org/package/show/Virtualization/ovmf?expand=0&rev=84 --- ovmf-pie.patch | 13 +++++++++++++ ovmf.changes | 6 ++++++ ovmf.spec | 3 ++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 ovmf-pie.patch diff --git a/ovmf-pie.patch b/ovmf-pie.patch new file mode 100644 index 0000000..0489da9 --- /dev/null +++ b/ovmf-pie.patch @@ -0,0 +1,13 @@ +Index: ovmf-2017+git1492060560.b6d11d7c46/BaseTools/Source/C/Makefiles/header.makefile +=================================================================== +--- ovmf-2017+git1492060560.b6d11d7c46.orig/BaseTools/Source/C/Makefiles/header.makefile ++++ ovmf-2017+git1492060560.b6d11d7c46/BaseTools/Source/C/Makefiles/header.makefile +@@ -49,7 +49,7 @@ ifeq ($(DARWIN),Darwin) + # assume clang or clang compatible flags on OS X + BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib -c -g + else +-BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-unused-result -nostdlib -c -g ++BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-unused-result -nostdlib -c -g -fPIE + endif + BUILD_LFLAGS = + BUILD_CXXFLAGS = -Wno-unused-result diff --git a/ovmf.changes b/ovmf.changes index e8a9c08..d029203 100644 --- a/ovmf.changes +++ b/ovmf.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat May 6 20:34:20 UTC 2017 - meissner@suse.com + +- ovmf-pie.patch: add -fPIE to the Common build Makefile to + allow a global PIE build. + ------------------------------------------------------------------- Thu Apr 13 07:13:09 UTC 2017 - glin@suse.com diff --git a/ovmf.spec b/ovmf.spec index 664c618..286e7fe 100644 --- a/ovmf.spec +++ b/ovmf.spec @@ -14,7 +14,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# needssslcertforbuild %undefine _build_create_debug @@ -47,6 +46,7 @@ Source100: %{name}-rpmlintrc Source101: gdb_uefi.py.in Patch2: %{name}-embed-default-keys.patch Patch3: %{name}-gdb-symbols.patch +Patch4: %{name}-pie.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: gcc @@ -160,6 +160,7 @@ rm -rf $PKG_TO_REMOVE %patch2 -p1 %endif %patch3 -p1 +%patch4 -p1 # add openssl pushd CryptoPkg/Library/OpensslLib