Displaying 2 results from an estimated 2 matches for "mapcookie".
2019 Feb 27
2
lld-link crash when linking intrinsics lib
...use the llvm-lib but directly "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...
2019 Feb 28
4
lld-link crash when linking intrinsics lib
...s 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;...