Date: Sun, 05 May 2002 15:39:34 +0530 From: shubhamr <shubhamr@malkauns.nsc.com> To: "questions@FreeBSD.ORG" <questions@freebsd.org> Subject: strange..very strange and challenging Message-ID: <3CD504DE.4DF36C6C@malkauns.nsc.com>
next in thread | raw e-mail | index | archive | help
Hi, I just complied my kernel to remove one of the device drivers.Then I compiled it again. Now I tried to load this driver dynamically.I put the src code in /usr/src/sys/dev/xx (where xx is my driver name).I also put the makefile in /usr/src/sys/modules/xx.(This was the place where it was earlier before I removed it).,and yes,it loaded and worked absolutely fine. Now the problem began.Then I changed the driver src code and tried to load,it cud not load due to "exec format error" in the respective ".elf"..blah..blah.. when I did an ifconfig ,it did not show up.That was expected..and was happy..But when I did an ifconfig xx0 139.187.94.93..,it got attached and was even pinging!! How did it work?? This is really shocking..Is it that the driver stored and used the previous working if_xx.ko(one before I had made changes to src code) and loaded it when i gave "ifconfig xx0 139.187.94.93"..My question is simple how did it work when there was no if_xx.ko since there was an exec format error? why the hell did it work when it was not supposed to??? anyone to accept this challenge!!It was disgusting! Of course it's behaviour is as eccentric as mine! reply soon. Thanks a lot for your time, shubha To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CD504DE.4DF36C6C>