Files
build_infra/0_笔记/others/aa.txt
T
2026-06-16 10:23:51 +08:00

109 lines
4.1 KiB
Plaintext

alientek@alientek-virtual-machine:#
$ ./x86_64-wyc-linux-gnu-gcc -print-search-dirs
安装:#
/../lib/gcc/x86_64-wyc-linux-gnu/15.1.0/
程序:=#
/../libexec/gcc/x86_64-wyc-linux-gnu/15.1.0/:#
/../libexec/gcc/:#
/../lib/gcc/x86_64-wyc-linux-gnu/15.1.0/../../../../x86_64-wyc-linux-gnu/bin/x86_64-wyc-linux-gnu/15.1.0/:#
/../lib/gcc/x86_64-wyc-linux-gnu/15.1.0/../../../../x86_64-wyc-linux-gnu/bin/
库:=#
/../lib/gcc/x86_64-wyc-linux-gnu/15.1.0/:#
/../lib/gcc/:#
/../lib/gcc/x86_64-wyc-linux-gnu/15.1.0/../../../../x86_64-wyc-linux-gnu/lib/x86_64-wyc-linux-gnu/15.1.0/:#
/../lib/gcc/x86_64-wyc-linux-gnu/15.1.0/../../../../x86_64-wyc-linux-gnu/lib/../lib64/:#
/../x86_64-wyc-linux-gnu/sysroot/lib/x86_64-wyc-linux-gnu/15.1.0/:#
/../x86_64-wyc-linux-gnu/sysroot/lib/../lib64/:#
/../x86_64-wyc-linux-gnu/sysroot/usr/lib/x86_64-wyc-linux-gnu/15.1.0/:#
/../x86_64-wyc-linux-gnu/sysroot/usr/lib/../lib64/:#
/../lib/gcc/x86_64-wyc-linux-gnu/15.1.0/../../../../x86_64-wyc-linux-gnu/lib/:#
/../x86_64-wyc-linux-gnu/sysroot/lib/:#
/../x86_64-wyc-linux-gnu/sysroot/usr/lib/
alientek@alientek-virtual-machine:/aenv/wyc_build/wyc_gcc_7500/x86_64-wyc-linux-gnu/bin$ /aenv/wyc_build/wyc_gcc_7500/x86_64-wyc-linux-gnu/bin/ld -verboseGNU ld (GNU Binutils) 2.44
支持的仿真:
elf_x86_64
elf32_x86_64
elf_i386
elf_iamcu
使用内部链接脚本:
==================================================
/* Script for -z combreloc -z separate-code */
/* Copyright (C) 2014-2025 Free Software Foundation, Inc.
Copying and distribution of this script, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. */
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
OUTPUT_ARCH(i386:x86-64)
ENTRY(_start)
SEARCH_DIR("/aenv/wyc_build/wyc_gcc_7500/x86_64-wyc-linux-gnu/lib64");
SEARCH_DIR("=lib");
SEARCH_DIR("=lib64");
SEARCH_DIR("=usr/lib");
SEARCH_DIR("=usr/lib64");
SEARCH_DIR("/aenv/wyc_build/wyc_gcc_7500/x86_64-wyc-linux-gnu/lib");
/aenv/wyc_build/wyc_gcc/x86_64-wyc-linux-gnu/bin
alientek@alientek-virtual-machine:/aenv/wyc_build/wyc_gcc/bin$ /aenv/wyc_build/wyc_gcc/bin/../lib/gcc/x86_64-wyc-linux-gnu/15.1.0/../../../../x86_64-wyc-linux-gnu/bin/ld -verbose
GNU ld (GNU Binutils) 2.44
支持的仿真:
elf_x86_64
elf32_x86_64
elf_i386
elf_iamcu
使用内部链接脚本:
==================================================
/* Script for -z combreloc -z separate-code */
/* Copyright (C) 2014-2025 Free Software Foundation, Inc.
Copying and distribution of this script, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. */
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
OUTPUT_ARCH(i386:x86-64)
ENTRY(_start)
SEARCH_DIR("/aenv/wyc_build/wyc_gcc_75/x86_64-wyc-linux-gnu/lib64");
SEARCH_DIR("/aenv/wyc_build/wyc_gcc_75/x86_64-wyc-linux-gnu/lib");
alientek@alientek-virtual-machine:/aenv/wyc_build/wyc_gcc$ /opt/atk-dlrk356x-toolchain/aarch64-buildroot-linux-gnu/bin/ld -verbose
GNU ld (GNU Binutils) 2.36.1
支持的仿真:
aarch64linux
aarch64elf
aarch64elf32
aarch64elf32b
aarch64elfb
armelf
armelfb
aarch64linuxb
aarch64linux32
aarch64linux32b
armelfb_linux_eabi
armelf_linux_eabi
使用内部链接脚本:
==================================================
/* Script for -z combreloc */
/* Copyright (C) 2014-2021 Free Software Foundation, Inc.
Copying and distribution of this script, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. */
OUTPUT_FORMAT("elf64-littleaarch64", "elf64-bigaarch64",
"elf64-littleaarch64")
OUTPUT_ARCH(aarch64)
ENTRY(_start)
SEARCH_DIR("=/home/alientek/ATK-DLRK3568/buildroot/output/rockchip_rk3568/host/aarch64-buildroot-linux-gnu/lib64");
SEARCH_DIR("=/usr/local/lib64");
SEARCH_DIR("=/lib64");
SEARCH_DIR("=/usr/lib64");
SEARCH_DIR("=/home/alientek/ATK-DLRK3568/buildroot/output/rockchip_rk3568/host/aarch64-buildroot-linux-gnu/lib");
SEARCH_DIR("=/usr/local/lib");
SEARCH_DIR("=/lib");
SEARCH_DIR("=/usr/lib");