reenable_DT_HASH.patch 785 B

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