Advertisement
Guest User

Untitled

a guest
May 7th, 2025
43
0
130 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.29 KB | None | 0 0
  1. # On CRUX, lib64 -> lib resulting in duplicate directories being
  2. # added to the SEARCH_DIR of the default (elf_x86_64) linker script.
  3. #
  4. # can be checked with ld --verbose | sed -n '/SEARCH_DIR/{s/; /\n/g;p}'
  5. #
  6. # before patch:
  7. #   SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64")
  8. #   SEARCH_DIR("/usr/local/lib64")
  9. #   SEARCH_DIR("/lib64")
  10. #   SEARCH_DIR("/usr/lib64")
  11. #   SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
  12. #   SEARCH_DIR("/usr/local/lib")
  13. #   SEARCH_DIR("/lib")
  14. #   SEARCH_DIR("/usr/lib");
  15. #
  16. # after patch:
  17. #   SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
  18. #   SEARCH_DIR("/usr/local/lib")
  19. #   SEARCH_DIR("/lib")
  20. #   SEARCH_DIR("/usr/lib");
  21.  
  22. diff -Nurp binutils-2.43.1.orig/ld/emulparams/elf_x86_64.sh binutils-2.43.1/ld/emulparams/elf_x86_64.sh
  23. --- binutils-2.43.1.orig/ld/emulparams/elf_x86_64.sh    2024-08-17 00:00:00.000000000 +0100
  24. +++ binutils-2.43.1/ld/emulparams/elf_x86_64.sh 2025-05-05 09:04:51.853717702 +0100
  25. @@ -45,13 +45,6 @@ fi
  26.  # Linux/Solaris modify the default library search path to first include
  27.  # a 64-bit specific directory.
  28.  case "$target" in
  29. -  x86_64*-linux*|i[3-7]86-*-linux-*)
  30. -    case "$EMULATION_NAME" in
  31. -      *64*)
  32. -   LIBPATH_SUFFIX=64
  33. -   ;;
  34. -    esac
  35. -    ;;
  36.    *-*-solaris2*)
  37.      LIBPATH_SUFFIX=/amd64
  38.      ELF_INTERPRETER_NAME=\"/lib/amd64/ld.so.1\"
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement