LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1146|回复: 1

求助 为什么在 F13 上编译 binutils-2.20.1 生成的文件用file看确是 "gnu

[复制链接]
发表于 2010-9-21 11:02:40 | 显示全部楼层 |阅读模式
求助 为什么在 F13 上编译 binutils-2.20.1  生成的文件用file看确是 "gnu/linux 2.0.0",而不是 gnu/linux 2.6.0" ,生成 binutils加了 --enable-kernel=2.6.33.3-85.fc13.i686  也不起作用
发表于 2010-10-17 10:48:56 | 显示全部楼层
不可能,我用ehl(LFS6。3)编译的程序一切正常。

例:

root [ ~ ]# echo 'main(){}'>dummy.c
root [ ~ ]# cc dummy.c
root [ ~ ]# file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), not stripped
root [ ~ ]# cc -v
使用内建 specs。
目标:i686-pc-linux-gnu
配置为:../gcc-4.1.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
线程模型:posix
gcc 版本 4.1.2
root [ ~ ]# as --version
GNU assembler 2.17
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i686-pc-linux-gnu'.
root [ ~ ]# uname -a
Linux EHLR1 2.6.22.5_EHLR1_K01 #1 SMP Thu Aug 12 08:50:23 CST 2010 i686 i686 i386 GNU/Linux
root [ ~ ]# ldconfig --version
ldconfig (GNU libc) 2.5.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Andreas Jaeger.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表