>Oh yes that's what has happened, I checked the symbols with "nm driver2" and 
>the driver1 symbols n
o longer appear as UNDEF. But that is not what I want. 
>
>OK so here's what happens when I use your option of
>
>ld -dy -N /kernel/drv/driver1 -N /kernel/misc/scsi -r driver2.o -o driver2

You shouldn't use "/kernel"; just "drv/driver1" and "misc/scsi"


>Upon loading driver2, it doesn't attach although driver1 is loaded and 
>attached already.
>
>Would you know why this is happening? It also seems like from the dmesg output 
>that driver2 is no 
longer complaining about either driver1 or transport layer symbols, as I'm 
getting no error message
s. 

Did you reboot?  Or made sure that all the drivers are unloaded?  
(modunload and verify with modinfo)?

I've had cases where changing the linking of a device driver required a 
reboot. 

Casper

_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to