# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/firefox/hotfix-ia64-check-textrel.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- # ia64 somehow has text relocations in libxul.so (FIXME), allow it also in # check_binary.py (-z notext is already stripped by wrapper) --- firefox-152.0.5/python/mozbuild/mozbuild/action/check_binary.py.vanilla 2026-07-13 22:00:00.000000000 +0200 +++ firefox-152.0.5/python/mozbuild/mozbuild/action/check_binary.py 2026-07-13 22:05:00.000000000 +0200 @@ -14,6 +14,9 @@ from packaging.version import Version IS_ARM64 = buildconfig.substs.get("TARGET_CPU") == "aarch64" +# ia64's GP-relative addressing range is too small for libxul.so; the +# linker produces text relocations regardless of -z text/notext. +IS_IA64 = buildconfig.substs.get("TARGET_CPU") == "ia64" # libstdc++ 4.8.1 of higher (6.0 or higher on arm64) STDCXX_MAX_VERSION = Version("3.4.22" if IS_ARM64 else "3.4.19") CXXABI_MAX_VERSION = Version("1.3.10" if IS_ARM64 else "1.3.7") @@ -282,11 +285,12 @@ if buildconfig.substs.get("MOZ_STDCXX_COMPAT") and PLATFORM == "Linux": checks.append(check_binary_compat) # Disabled for local builds because of readelf performance: See bug 1472496 if not buildconfig.substs.get("DEVELOPER_OPTIONS"): - checks.append(check_textrel) + if not IS_IA64: + checks.append(check_textrel) checks.append(check_pt_load) checks.append(check_mozglue_order) retcode = 0 basename = os.path.basename(binary)