Do not use --enable-static-pie configure flag

Since upstream commit 23645707f12f, --enable-static-pie is ignored by
the build system and static PIE is enabled by default on architectures
that support it.
This commit is contained in:
Arjun Shankar 2021-12-15 13:20:14 +01:00
parent 2d913ac06a
commit 201f88a749

View File

@ -69,9 +69,6 @@
%undefine with_valgrind %undefine with_valgrind
%endif %endif
# Only some architectures have static PIE support.
%define pie_arches %{ix86} x86_64
# The annobin annotations cause binutils to produce broken ARM EABI # The annobin annotations cause binutils to produce broken ARM EABI
# unwinding information. Symptom is a hang/test failure for # unwinding information. Symptom is a hang/test failure for
# malloc/tst-malloc-stats-cancellation. See # malloc/tst-malloc-stats-cancellation. See
@ -151,7 +148,7 @@ end \
Summary: The GNU libc libraries Summary: The GNU libc libraries
Name: glibc Name: glibc
Version: %{glibcversion} Version: %{glibcversion}
Release: 31%{?dist} Release: 32%{?dist}
# In general, GPLv2+ is used by programs, LGPLv2+ is used for # In general, GPLv2+ is used by programs, LGPLv2+ is used for
# libraries. # libraries.
@ -1151,9 +1148,6 @@ build()
--enable-bind-now \ --enable-bind-now \
--build=%{target} \ --build=%{target} \
--enable-stack-protector=strong \ --enable-stack-protector=strong \
%ifarch %{pie_arches}
--enable-static-pie \
%endif
--enable-tunables \ --enable-tunables \
--enable-systemtap \ --enable-systemtap \
${core_with_options} \ ${core_with_options} \
@ -2159,6 +2153,9 @@ update_gconv_modules_cache ()
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared %files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
%changelog %changelog
* Wed Dec 15 2021 Arjun Shankar <arjun@redhat.com> - 2.34.9000-32
- Do not use --enable-static-pie configure flag since it is now ignored
* Wed Dec 15 2021 Florian Weimer <fweimer@redhat.com> - 2.34.9000-31 * Wed Dec 15 2021 Florian Weimer <fweimer@redhat.com> - 2.34.9000-31
- Drop glibc-fedora-revert-PT_LOAD-segment-align.patch; fix applied upstream - Drop glibc-fedora-revert-PT_LOAD-segment-align.patch; fix applied upstream
- Auto-sync with upstream branch master, - Auto-sync with upstream branch master,