<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I'm trying to implement dhcp client on my ARM board, but it is crashing because of illegal instruction.<br>1. My host PC is Linux CentOS 4.4<br> The kernal in ARM board is Linux 2.6.24.4<br> Version of ISC DHCP src is 3.1.3<br> Version of crosstool is arm-linux-gcc 3.4.1<br>2. I can build src successfully without errors.<br>3. My problem is when i type "./dhclient eth0" on ARM board, illegal instruction problem happened.<br> <i>[root@W5300E01-ARM sbin]$ dhcpclient eth0<br> Illegal instruction<br></i>4. I use gdb to debug and got this traceback:<br><i><br>0x000080d0 in _start ()<br>(gdb) c<br>Continuing.<br><br>Program received signal SIGILL, Illegal instruction.<br>0x000a42ec in __setfpucw ()<br>(gdb) bt<br>#0 0x000a42ec in __setfpucw ()<br>#1 0x00094ce4 in init ()<br>#2 0x00094d38 in __libc_init_first ()<br>#3 0x0007c540 in __libc_start_main ()<br>#4 0x000080f8 in _start ()<br>#5 0x000080f8 i
n _start ()<br></i>I don't know why i couldn't get the actual source line number. i have used command line to build a DEBUG type:<br>[root@localhost dhcp-3.1.3]# make "CC=/usr/local/arm/3.4.1/bin/arm-linux-gcc -static -DEBUG"<br><br>Thanks!<br>Li Gang<br> <br /><hr />使用新一代 Windows Live Messenger 轻松交流和共享! <a href='http://www.windowslive.cn/messenger/' target='_new'>立刻下载!</a></body>
</html>