From 93063bb396395b9a208a2448fdcf55eccf16219e Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 4 Oct 2024 20:04:52 +0200 Subject: [PATCH] Update comment and documentation about DT_RELR or packed relocations Fallout from ed9ad0e79d9fe7025bce54e1098fa05f272eda05 https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/313 --- buildflags.md | 2 +- macros | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buildflags.md b/buildflags.md index 0554f81..a78ecf6 100644 --- a/buildflags.md +++ b/buildflags.md @@ -654,7 +654,7 @@ to the compiler driver `gcc`, and not directly to the link editor * `-z pack-relative-relocs`: Use the portable `DT_RELR` scheme for relative relocations, resulting in reduced startup time compared to legacy architecture-specific relocations. (`-z pack-relative-relocs` - is currently disabled on aarch64 and s390x due to toolchain limitations.) + is currently disabled on s390x due to toolchain limitations.) * `-z defs`: Refuse to link shared objects (DSOs) with undefined symbols (optional, see above). diff --git a/macros b/macros index 4b2ca28..ef3df7e 100644 --- a/macros +++ b/macros @@ -380,7 +380,7 @@ for k,_ in pairs(stripped_flags) do print(k .. " ") end %_ld_as_needed 1 %_ld_as_needed_flags %{?_ld_as_needed:-Wl,--as-needed} -# aarch64 and s390x currently do not support packed relocations. +# s390x currently does not support packed relocations. %_ld_pack_relocs %[ "%{_arch}" == "x86_64" || "%{_arch}" == "i386" || "%{_arch}" == "ppc64le" || "%{_arch}" == "aarch64"] %_ld_pack_relocs_flags %[0%{?_ld_pack_relocs} ? "-Wl,-z,pack-relative-relocs" : ""]