新建一个源文件main.c #include<stdio.h> int main() { printf("Welcome to Makefile and ld.script project ! \r\n"); return 0; } 新建一个链接脚本文件ld.script ld -verbose