Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
oldlinux_linux0.11 在deepin下编译
Apps Section
1692
views ·
2
replies ·
To
floor
Go
parai
deepin
2012-04-09 00:32
Author
我修改别人的linux0.11在deepin linux下能够编译通过,虽然有很多警告。
444.png
图中可以看到,setup和kernel被正常文件加载,且setup被执行,显示setup system...OK,但自此之后程序出问题,bochs重启。
我分析了一下,原因在于:
tools/system:boot/head.o init/main.o \
$(ARCHIVES) $(DRIVERS) $(MATH) $(LIBS)
$(LD) $(LDFLAGS) boot/head.o init/main.o \
$(ARCHIVES) \
$(DRIVERS) \
$(MATH) \
$(LIBS) \
-o tools/system
nm tools/system | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aU] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)'| sort > System.map
ld link生成system时,出问题了,vi %!xxd 查看system 内容如下图:
sys.png
发现head.s的代码没了,head.o 内容如下:
head.png
b810 0000=movl $0x10,%eax
可见确实时ld除了问题,还是其他原因呢?
求解释?
Reply
Like 0
Favorite
View the author
All Replies
parai
deepin
2012-04-09 00:50
#1
http://www.oldlinux.org/Linux.old/bochs ... 040923.zip
Reply
Like 0
View the author
parai
deepin
2012-04-09 20:43
#2
各位高人,看过之后,给点指示,为什么》?
Reply
Like 0
View the author
Please
sign
in first
New Thread
Popular Ranking
Change
Closing lid, but display still active.
Bluetooth not working after laptop suspend mode
keyring deepin password.. WTF... Not user friendly
UNABLE TO SYNC IN BRAZIL
Popular Events
More
444.png
图中可以看到,setup和kernel被正常文件加载,且setup被执行,显示setup system...OK,但自此之后程序出问题,bochs重启。
我分析了一下,原因在于:
tools/system:boot/head.o init/main.o \
$(ARCHIVES) $(DRIVERS) $(MATH) $(LIBS)
$(LD) $(LDFLAGS) boot/head.o init/main.o \
$(ARCHIVES) \
$(DRIVERS) \
$(MATH) \
$(LIBS) \
-o tools/system
nm tools/system | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aU] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)'| sort > System.map
ld link生成system时,出问题了,vi %!xxd 查看system 内容如下图:
sys.png
发现head.s的代码没了,head.o 内容如下:
head.png
b810 0000=movl $0x10,%eax
可见确实时ld除了问题,还是其他原因呢?
求解释?