Ai
2 Star 7 Fork 27

LicheePiNano/Linux

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gcc-ld 711 Bytes
一键复制 编辑 原始数据 按行查看 历史
RobotFly 提交于 2020-06-22 14:02 +08:00 . 初始化荔枝派nano的诶和源码
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# run gcc with ld options
# used as a wrapper to execute link time optimizations
# yes virginia, this is not pretty
ARGS="-nostdlib"
while [ "$1" != "" ] ; do
case "$1" in
-save-temps|-m32|-m64) N="$1" ;;
-r) N="$1" ;;
-[Wg]*) N="$1" ;;
-[olv]|-[Ofd]*|-nostdlib) N="$1" ;;
--end-group|--start-group)
N="-Wl,$1" ;;
-[RTFGhIezcbyYu]*|\
--script|--defsym|-init|-Map|--oformat|-rpath|\
-rpath-link|--sort-section|--section-start|-Tbss|-Tdata|-Ttext|\
--version-script|--dynamic-list|--version-exports-symbol|--wrap|-m)
A="$1" ; shift ; N="-Wl,$A,$1" ;;
-[m]*) N="$1" ;;
-*) N="-Wl,$1" ;;
*) N="$1" ;;
esac
ARGS="$ARGS $N"
shift
done
exec $CC $ARGS
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/LicheePiNano/Linux.git
git@gitee.com:LicheePiNano/Linux.git
LicheePiNano
Linux
Linux
master

搜索帮助