Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # On CRUX, lib64 -> lib resulting in duplicate directories being
- # added to the SEARCH_DIR of the default (elf_x86_64) linker script.
- #
- # can be checked with ld --verbose | sed -n '/SEARCH_DIR/{s/; /\n/g;p}'
- #
- # before patch:
- # SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64")
- # SEARCH_DIR("/usr/local/lib64")
- # SEARCH_DIR("/lib64")
- # SEARCH_DIR("/usr/lib64")
- # SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
- # SEARCH_DIR("/usr/local/lib")
- # SEARCH_DIR("/lib")
- # SEARCH_DIR("/usr/lib");
- #
- # after patch:
- # SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
- # SEARCH_DIR("/usr/local/lib")
- # SEARCH_DIR("/lib")
- # SEARCH_DIR("/usr/lib");
- diff -Nurp binutils-2.43.1.orig/ld/emulparams/elf_x86_64.sh binutils-2.43.1/ld/emulparams/elf_x86_64.sh
- --- binutils-2.43.1.orig/ld/emulparams/elf_x86_64.sh 2024-08-17 00:00:00.000000000 +0100
- +++ binutils-2.43.1/ld/emulparams/elf_x86_64.sh 2025-05-05 09:04:51.853717702 +0100
- @@ -45,13 +45,6 @@ fi
- # Linux/Solaris modify the default library search path to first include
- # a 64-bit specific directory.
- case "$target" in
- - x86_64*-linux*|i[3-7]86-*-linux-*)
- - case "$EMULATION_NAME" in
- - *64*)
- - LIBPATH_SUFFIX=64
- - ;;
- - esac
- - ;;
- *-*-solaris2*)
- LIBPATH_SUFFIX=/amd64
- ELF_INTERPRETER_NAME=\"/lib/amd64/ld.so.1\"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement