Displaying 2 results from an estimated 2 matches for "snp_driver".
Did you mean:
nv_driver
2019 Feb 27
2
lld-link crash when linking intrinsics lib
..."lld-link /NODEFAULTLIB /ENTRY:main main.obj intrinsics.obj", the below example can pass link. Please advise what's wrong in this example.
$ cat main.c
typedef struct {
struct MAP_LIST {
unsigned long long VirtualAddress;
void *MapCookie;
} MapList[100];
} SNP_DRIVER;
SNP_DRIVER snp_instance;
int main()
{
SNP_DRIVER *Snp;
Snp = &snp_instance;
for (int Index = 0; Index < 100; Index++) {
Snp->MapList[Index].VirtualAddress = 0;
Snp->MapList[Index].MapCookie = 0;
}
return 0;
}
$ cat intrinsics.c
void * memset (void *dest, int c...
2019 Feb 28
4
lld-link crash when linking intrinsics lib
...t;
>>
>>
>>
>>
>> $ cat main.c
>>
>> typedef struct {
>>
>> struct MAP_LIST {
>>
>> unsigned long long VirtualAddress;
>>
>> void *MapCookie;
>>
>> } MapList[100];
>>
>> } SNP_DRIVER;
>>
>> SNP_DRIVER snp_instance;
>>
>> int main()
>>
>> {
>>
>> SNP_DRIVER *Snp;
>>
>> Snp = &snp_instance;
>>
>> for (int Index = 0; Index < 100; Index++) {
>>
>> Snp->MapList[Index].VirtualAddr...