mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-22 16:53:31 +08:00
10d9808829
ld/ PR ld/22962 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32lriscv_ilp32f.c, eelf32lriscv_ilp32.c, eelf64lriscv_lp64f.c, eelf64lriscv_lp64.c. (eelf32lriscv_ilp32f.c, eelf32lriscv_ilp32.c): New build rules. (eelf64lriscv_lp64f.c, eelf64lriscv_lp64.c): New build rules. * Makefile.in: Regenerated. * configure.tgt (riscv32*-*-linux*, riscv64*-*-linux*): New. * ld/emulparams/elf32lriscv.sh: Set LIBPATH_SUFFIX. * ld/emulparams/elf32lriscv_ilp32.sh: New. * ld/emulparams/elf32lriscv_ilp32f.sh: New. * ld/emulparams/elf64lriscv-defs.sh: Don't set LIBPATH_SUFFIX here. * ld/emulparams/elf64lriscv.sh: Set LIBPATH_SUFFIX. * ld/emulparams/elf64lriscv_lp64.sh: New. * ld/emulparams/elf64lriscv_lp64f.sh: New. * ld/genscripts.sh (append_to_lib_path): Change LIBPATH_SUFFIX test to a for. Inside loop, change LIBPATH_SUFFIX uses to libpath_suffix. (LIB_PATH): In LIB_PATH if, add loop for LIBPATH_SUFFIX, changes uses inside loop to libpath_suffix.
15 lines
334 B
Bash
15 lines
334 B
Bash
# RV32 code using ILP32F ABI.
|
|
. ${srcdir}/emulparams/elf32lriscv-defs.sh
|
|
OUTPUT_FORMAT="elf32-littleriscv"
|
|
|
|
# On Linux, first look for 32 bit ILP32F target libraries in /lib/ilp32f as per
|
|
# the glibc ABI.
|
|
case "$target" in
|
|
riscv32*-linux*)
|
|
case "$EMULATION_NAME" in
|
|
*32*)
|
|
LIBPATH_SUFFIX="/ilp32f" ;;
|
|
esac
|
|
;;
|
|
esac
|