[问题]ld: cannot open linker script file test: No such file or

软件和网站开发以及相关技术探讨
回复
ayaa
帖子: 14
注册时间: 2006-11-08 9:29
送出感谢: 0
接收感谢: 0

[问题]ld: cannot open linker script file test: No such file or

#1

帖子 ayaa » 2007-11-11 16:22

在7.04下

$ ld -s -Ttest 0x30400 -o kernel.bin kernel.o
ld: cannot open linker script file test: No such file or directory
$ ld -v
GNU ld version 2.17.50 20070103 Ubuntu


7.10里也是一样
但是在6.06下就没有问题

ld的帮助里显示的与T相关参数用法如下:

-T FILE, --script FILE Read linker script

-Tbss ADDRESS Set address of .bss section
-Tdata ADDRESS Set address of .data section
-Ttext ADDRESS Set address of .text section

这可怎么解决呢?
回复

回到 “软件/网站开发”