把C程序的int main(void)改成static int main(void)会怎样呢?(三)
rt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
就不难理解了——
在函数_start中,引用了未定义的符号main
collect2外壳:链接器ld返回1标记退出状态(出错状态)