Accepting request 886982 from home:wfrisch:branches:Kernel:kdump

Hardening: Link as PIE (bsc#1185020).

OBS-URL: https://build.opensuse.org/request/show/886982
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=135
This commit is contained in:
Petr Tesařík 2021-04-25 18:13:48 +00:00 committed by Git OBS Bridge
parent d242ddc4b1
commit 5c9a9e50f3
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 20 12:01:43 UTC 2021 - Wolfgang Frisch <wolfgang.frisch@suse.com>
- Hardening: Link as PIE (bsc#1185020).
-------------------------------------------------------------------
Tue Nov 24 16:54:57 UTC 2020 - Ludwig Nussel <lnussel@suse.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package kexec-tools
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -47,7 +47,7 @@ BuildRequires: zlib-devel
#!BuildIgnore: gcc-PIE
Requires: perl-Bootloader
Requires(post): suse-module-tools
Requires(postun): suse-module-tools
Requires(postun):suse-module-tools
%{?systemd_requires}
%ifarch x86_64
BuildRequires: pkgconfig
@ -77,8 +77,9 @@ the loaded kernel after it panics.
%build
autoreconf -fvi
export CFLAGS="%{optflags}"
export CFLAGS="%{optflags} -fPIC"
export BUILD_CFLAGS="%{optflags}"
export LDFLAGS="-pie"
%configure
make %{?_smp_mflags}