Update comment and documentation about DT_RELR or packed relocations

Fallout from ed9ad0e79d

https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/313
This commit is contained in:
Debarshi Ray 2024-10-04 20:04:52 +02:00
parent 7201054032
commit 93063bb396
2 changed files with 2 additions and 2 deletions

View File

@ -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).

2
macros
View File

@ -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" : ""]