----- Original Message -----
>Date: Sun, 14 Nov 2010 08:20:13 -0500
>From: Kyle McDonald <[email protected]>
>To: [email protected]
>Subject: [driver-discuss] Question about running 'ld' on a SCSI HBA driver?
>
>
>
>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
>
>Is the boook wrong? Or am I missing something?
>
>It links fine without the '-N "misc/scsi"', though I haven't tried to
>load it yet.

I use following command to make my nic driver compiled by gcc
under solaris nv b124. It worked for me.

/usr/ccs/bin/ld -r -dy -N misc/mac -N drv/ip amd64/atge_gem.o amd64/gem.o -o a
md64/atge

-masa

>  -Kyle
>_______________________________________________
>Developer mailing list
>[email protected]
>http://lists.illumos.org/m/listinfo/developer
>
>_______________________________________________
>driver-discuss mailing list
>[email protected]
>http://mail.opensolaris.org/mailman/listinfo/driver-discuss

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

Reply via email to