|
发表于 2009-12-28 17:25:14
|
显示全部楼层
这个是使用过的 tools 目录么? 在第六章的时候有"Re-adjusting the Toolchain",在这个部分之后就使用目标系统的 libc 了, 而重新使用 tools 再次做第六章的时候, 是没有新的 glibc 的.
可以尝试着把 Re-adjusting the Toolchain 的过程逆过来, 先恢复旧的 ld:
- mv -v /tools/bin/{ld,ld-new}
- mv -v /tools/bin/{ld-old,ld}
- rm /tools/$(gcc -dumpmachine)/bin/ld
- mv -v /tools/$(gcc -dumpmachine)/bin/{ld-old,ld}
复制代码
然后把 specs 删除:
- rm `dirname $(gcc --print-libgcc-file-name)`/specs
复制代码
试试看, 不知道可以不可以 |
|