!192 add static-pie compilation option in aarch64
From: @yang_yanchao Reviewed-by: @wangbin224 Signed-off-by: @wangbin224
This commit is contained in:
commit
12d88f5b3d
14
glibc.spec
14
glibc.spec
@ -46,6 +46,9 @@
|
|||||||
%undefine with_valgrind
|
%undefine with_valgrind
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Only some architectures have static PIE support
|
||||||
|
%define pie_arches %{ix86} x86_64 aarch64
|
||||||
|
|
||||||
%define enablekernel 3.2
|
%define enablekernel 3.2
|
||||||
%define target %{_target_cpu}-%{_vendor}-linux
|
%define target %{_target_cpu}-%{_vendor}-linux
|
||||||
%ifarch %{arm}
|
%ifarch %{arm}
|
||||||
@ -60,7 +63,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
Name: glibc
|
Name: glibc
|
||||||
Version: 2.34
|
Version: 2.34
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: The GNU libc libraries
|
Summary: The GNU libc libraries
|
||||||
License: %{all_license}
|
License: %{all_license}
|
||||||
URL: http://www.gnu.org/software/glibc/
|
URL: http://www.gnu.org/software/glibc/
|
||||||
@ -425,9 +428,13 @@ pushd $builddir
|
|||||||
--enable-bind-now \
|
--enable-bind-now \
|
||||||
--build=%{target} \
|
--build=%{target} \
|
||||||
--enable-stack-protector=strong \
|
--enable-stack-protector=strong \
|
||||||
%ifarch %{x86_arches}
|
%ifarch %{pie_arches}
|
||||||
%if 0%{?gcc_version} >= 8
|
%if 0%{?gcc_version} >= 8
|
||||||
--enable-static-pie \
|
--enable-static-pie \
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
%ifarch %{x86_arches}
|
||||||
|
%if 0%{?gcc_version} >= 8
|
||||||
--enable-cet \
|
--enable-cet \
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@ -1165,6 +1172,9 @@ fi
|
|||||||
%doc hesiod/README.hesiod
|
%doc hesiod/README.hesiod
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 14 2021 Yang Yanchao<yangyanchao6@huawei.com> - 2.34-3
|
||||||
|
- add --enable-static-pie in aarch64
|
||||||
|
|
||||||
* Wed Aug 25 2021 Qingqing Li<liqingqing3@huawei.com> - 2.34-2
|
* Wed Aug 25 2021 Qingqing Li<liqingqing3@huawei.com> - 2.34-2
|
||||||
- fix CVE-2021-38604
|
- fix CVE-2021-38604
|
||||||
https://sourceware.org/bugzilla/show_bug.cgi?id=28213
|
https://sourceware.org/bugzilla/show_bug.cgi?id=28213
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user