Override the linker and force noexecstack stacks

Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
This commit is contained in:
Qiumiao Zhang 2023-07-17 16:17:40 +08:00
parent 0e6b8e7a12
commit 794af19021
2 changed files with 8 additions and 2 deletions

View File

@ -14,7 +14,7 @@
%global ccpath %{__cc}
%endif
%global cc_equals "CC=%{ccpath} -fPIE"
%global cc_equals "CC=%{ccpath} -fPIE -Wl,-z,noexecstack"
%global cflags_sed \\\
sed \\\

View File

@ -14,7 +14,7 @@
Name: grub2
Epoch: 1
Version: 2.06
Release: 31
Release: 32
Summary: Bootloader with support for Linux, Multiboot and more
License: GPLv3+
URL: http://www.gnu.org/software/grub/
@ -440,6 +440,12 @@ fi
%{_datadir}/man/man*
%changelog
* Mon Jul 17 2023 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:2.06-32
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:Override the linker and force noexecstack stacks
* Mon Jul 3 2023 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:2.06-31
- Type:bugfix
- CVE:NA