PKGBUILDs/core/glibc/reenable_DT_HASH.patch

29 lines
785 B
Diff
Raw Normal View History

2023-08-05 01:10:24 +00:00
From 31915e55f9c34f6137ab1c5ac002375a2d5d4589 Mon Sep 17 00:00:00 2001
From: Frederik Schwan <frederik.schwan@linux.com>
Date: Fri, 4 Aug 2023 15:19:57 +0200
Subject: [PATCH] force --hash-style=both to keep compatibility with old niche
software
2022-08-13 16:06:46 +00:00
---
2023-08-05 01:10:24 +00:00
Makeconfig | 4 ++++
1 file changed, 4 insertions(+)
2022-08-13 16:06:46 +00:00
2023-08-05 01:10:24 +00:00
diff --git a/Makeconfig b/Makeconfig
index 77d7fd14df..2ae67c4beb 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -378,6 +378,10 @@ relro-LDFLAGS = -Wl,-z,relro
2022-08-13 16:06:46 +00:00
LDFLAGS.so += $(relro-LDFLAGS)
LDFLAGS-rtld += $(relro-LDFLAGS)
+hashstyle-LDFLAGS = -Wl,--hash-style=both
+LDFLAGS.so += $(hashstyle-LDFLAGS)
+LDFLAGS-rtld += $(hashstyle-LDFLAGS)
+
2023-08-05 01:10:24 +00:00
# Linker options to enable and disable DT_RELR.
ifeq ($(have-dt-relr),yes)
dt-relr-ldflag = -Wl,-z,pack-relative-relocs
2022-08-13 16:06:46 +00:00
--
2023-08-05 01:10:24 +00:00
2.41.0
2022-08-13 16:06:46 +00:00