Accepting request 484272 from home:msmeissn:branches:hardware

- no-pie.patch: build msrtool without PIE/PIC

OBS-URL: https://build.opensuse.org/request/show/484272
OBS-URL: https://build.opensuse.org/package/show/hardware/coreboot-utils?expand=0&rev=24
This commit is contained in:
Stanislav Brabec 2017-05-05 16:48:47 +00:00 committed by Git OBS Bridge
parent d75e116445
commit 012052d45a
3 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 31 21:22:59 UTC 2017 - meissner@suse.com
- no-pie.patch: build msrtool without PIE/PIC
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Feb 25 21:03:17 UTC 2017 - shshyukriev@suse.com Sat Feb 25 21:03:17 UTC 2017 - shshyukriev@suse.com

View File

@ -24,6 +24,7 @@ Group: Development/Tools/Other
Version: 4.5 Version: 4.5
Release: 0 Release: 0
Source0: http://www.coreboot.org/releases/coreboot-%{version}.tar.xz Source0: http://www.coreboot.org/releases/coreboot-%{version}.tar.xz
Patch1: no-pie.patch
Patch2: k8resdump.diff Patch2: k8resdump.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -39,6 +40,7 @@ used to develop and configure systems with coreboot.
%prep %prep
%setup -q -n coreboot-%{version} %setup -q -n coreboot-%{version}
%patch1 -p1
%patch2 -p1 %patch2 -p1
%build %build

15
no-pie.patch Normal file
View File

@ -0,0 +1,15 @@
Index: coreboot-4.5/util/msrtool/Makefile.in
===================================================================
--- coreboot-4.5.orig/util/msrtool/Makefile.in
+++ coreboot-4.5/util/msrtool/Makefile.in
@@ -19,8 +19,8 @@ PROGRAM = msrtool
CC = @CC@
INSTALL = @INSTALL@
PREFIX = @PREFIX@
-CFLAGS = @CFLAGS@ -fno-pic
-LDFLAGS = @LDFLAGS@
+CFLAGS = @CFLAGS@ -fno-pic -fno-PIE
+LDFLAGS = @LDFLAGS@ -no-pie
TARGETS = geodegx2.o geodelx.o cs5536.o k8.o intel_pentium3_early.o intel_pentium3.o intel_pentium4_early.o intel_pentium4_later.o intel_core1.o intel_core2_early.o intel_core2_later.o intel_nehalem.o intel_atom.o
SYSTEMS = linux.o darwin.o freebsd.o