Hi,

On Nov 14, 2010, at 2:20 PM, Kyle McDonald wrote:

> 
> I've been reading through the "Writing Device Drivers" book from Sun,
> and in the chapter about writing SCSI HBA drivers, there's this section:
> 
>> To inform the system that the module depends on SCSA routines, the
>> driver binary must be generated with the following command. See
>> “SCSA HBA Interfaces” on page 358 for more information on SCSA
>> routines.
>> 
>> ld -r xx.o -o xx -N "misc/scsi"
>> 
> 
> But when I run 'ld' like that I get:
> 
>> $ ld -r build/Debug_X32/SunStudio_12-Solaris-x86/ips.o -o
>> dist/Debug_X32/SunStudio_12-Solaris-x86/ips -N "misc/scsi"
>> 
>> ld: fatal: -N option is incompatible with building a static object
>> (-dn, -r, --relocatable) ld: fatal: file processing errors. No
>> output written to dist/Debug_X32/SunStudio_12-Solaris-x86/ips

Add "-dy" to the ld command line.

max


_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to