efivar-38-binutils-2.36.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. From 197a0874ea4010061b98b4b55eff65b33b1cd741 Mon Sep 17 00:00:00 2001
  2. From: Robbie Harwood <rharwood@redhat.com>
  3. Date: Mon, 17 Jan 2022 12:34:55 -0500
  4. Subject: [PATCH] Add -T workaround for GNU ld 2.36
  5. Signed-off-by: Robbie Harwood <rharwood@redhat.com>
  6. Resolves: #195
  7. ---
  8. src/include/workarounds.mk | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/src/include/workarounds.mk b/src/include/workarounds.mk
  11. index 31188342..143e7902 100644
  12. --- a/src/include/workarounds.mk
  13. +++ b/src/include/workarounds.mk
  14. @@ -4,12 +4,12 @@
  15. LD_FLAVOR := $(shell $(LD) --version | grep -E '^(LLD|GNU ld)'|sed 's/ .*//g')
  16. LD_VERSION := $(shell $(LD) --version | grep -E '^(LLD|GNU ld)'|sed 's/.* //')
  17. -# I haven't tested 2.36 here; 2.35 is definitely broken and 2.37 seems to work
  18. +# 2.35 is definitely broken and 2.36 seems to work
  19. LD_DASH_T := $(shell \
  20. if [ "x${LD_FLAVOR}" = xLLD ] ; then \
  21. echo '-T' ; \
  22. elif [ "x${LD_FLAVOR}" = xGNU ] ; then \
  23. - if echo "${LD_VERSION}" | grep -q -E '^2\.3[789]|^2\.[456789]|^[3456789]|^[[:digit:]][[:digit:]]' ; then \
  24. + if echo "${LD_VERSION}" | grep -q -E '^2\.3[6789]|^2\.[456789]|^[3456789]|^[[:digit:]][[:digit:]]' ; then \
  25. echo '-T' ; \
  26. else \
  27. echo "" ; \