Sorry Casper, small typo. Actually I wanted to use driver1 symbols in driver2, so what I'm using was actually ld -dy -N driver1 -N misc/scsi -r driver2.o -o driver2
I changed this to ld -dy -Bdirect driver2 -r driver2.o -o driver2 driver2 attaches fine now. Regards, Bhaskar. -----Original Message----- From: cas...@holland.sun.com [mailto:cas...@holland.sun.com] On Behalf Of casper....@sun.com Sent: Monday, August 31, 2009 2:24 PM To: Jayaraman, Bhaskar Cc: opensolaris-code@opensolaris.org Subject: Re: [osol-code] Exporting solaris symbols from driver! >I've been using this linker line so far, >ld -dy -N driver2 -r driver2.o -o driver2 > >Upon your suggestion I modified this to >ld -dy -N driver2 -N misc/scsi -r driver2.o -o driver2 The "-N driver2" is not correct. Are there other drivers you want to use? "misc/scsi" is found using the standard module load path: /kernel/misc/sparcv9/scsi /kernel/misc/scsi (x86) /kernel/misc/amd64/scsi >In spite of this I'm getting errors after loading the driver. It isn't able to >attach because the scsi symbols aren't being resolved. Which particular symbols? Have you verified where the functions are defined? Casper _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code