Re: lseek in a KEXT
Re: lseek in a KEXT
- Subject: Re: lseek in a KEXT
- From: David Blanton <email@hidden>
- Date: Wed, 7 Aug 2002 11:36:43 -0600
JCW ... This is just info for you ...........
I did kmodload -v -o /tmp/sym macos/kext
gdb add-symbol-file /tmp/sym
gdb info func
and behold
000aeaa4 delete
000aeaac lseek
000aec04 olseek
with no reference to lseek in the kext at all
so, i though great I will define the function in my kext and call it
since the symbol is there
and that did not work as I got
kmodload: kld(): kmodload: Undefined symbols:kmodload:
kmodload: _lseek__Fixi
On Wednesday, August 7, 2002, at 11:09 AM, Justin C. Walker wrote:
On Wednesday, August 7, 2002, at 10:02 AM, David Blanton wrote:
if lseek is libc and not available why is the symbol for lseek in the
kext symbol file?
I dunno. Do you call 'lseek()' in your extension? Is the symbol
defined or undefined?
I have no idea how you got the kext symbol file, or how you built the
extension, so it's pretty difficult to answer your question. You can,
of course, execute 'ld' with a reference to your extension and libc,
and get something which may appear to be successfully linked. The
result will blow up in your face, once you light the fuse, of course.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Men are from Earth.
| Women are from Earth.
| Deal with it.
*--------------------------------------*-------------------------------*
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
David Blanton
Elisar Software Corporation
Albuquerque
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.