@@ -307,8 +307,8 @@ extern "C"
307
307
platform = new LinuxX86Platform (x86);
308
308
Platform::Register (" linux" , platform);
309
309
// Linux binaries sometimes have an OS identifier of zero, even though 3 is the correct one
310
- BinaryViewType::RegisterPlatform (" ELF" , 0 , x86, platform);
311
- BinaryViewType::RegisterPlatform (" ELF" , 3 , x86, platform);
310
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platform);
311
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platform);
312
312
}
313
313
314
314
Ref<Architecture> x64 = Architecture::GetByName (" x86_64" );
@@ -319,8 +319,8 @@ extern "C"
319
319
platform = new LinuxX64Platform (x64);
320
320
Platform::Register (" linux" , platform);
321
321
// Linux binaries sometimes have an OS identifier of zero, even though 3 is the correct one
322
- BinaryViewType::RegisterPlatform (" ELF" , 0 , x64, platform);
323
- BinaryViewType::RegisterPlatform (" ELF" , 3 , x64, platform);
322
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platform);
323
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platform);
324
324
}
325
325
326
326
Ref<Architecture> armv7 = Architecture::GetByName (" armv7" );
@@ -344,10 +344,10 @@ extern "C"
344
344
Platform::Register (" linux" , armebPlatform);
345
345
Platform::Register (" linux" , thumbebPlatform);
346
346
// Linux binaries sometimes have an OS identifier of zero, even though 3 is the correct one
347
- BinaryViewType::RegisterPlatform (" ELF" , 0 , armv7, armPlatform);
348
- BinaryViewType::RegisterPlatform (" ELF" , 3 , armv7, armPlatform);
349
- BinaryViewType::RegisterPlatform (" ELF" , 0 , armv7eb, armebPlatform);
350
- BinaryViewType::RegisterPlatform (" ELF" , 3 , armv7eb, armebPlatform);
347
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , armPlatform);
348
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , armPlatform);
349
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , armebPlatform);
350
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , armebPlatform);
351
351
}
352
352
353
353
Ref<Architecture> arm64 = Architecture::GetByName (" aarch64" );
@@ -358,8 +358,8 @@ extern "C"
358
358
platform = new LinuxArm64Platform (arm64);
359
359
Platform::Register (" linux" , platform);
360
360
// Linux binaries sometimes have an OS identifier of zero, even though 3 is the correct one
361
- BinaryViewType::RegisterPlatform (" ELF" , 0 , arm64, platform);
362
- BinaryViewType::RegisterPlatform (" ELF" , 3 , arm64, platform);
361
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platform);
362
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platform);
363
363
}
364
364
365
365
Ref<Architecture> ppc = Architecture::GetByName (" ppc" );
@@ -374,10 +374,10 @@ extern "C"
374
374
Platform::Register (" linux" , platform);
375
375
Platform::Register (" linux" , platformle);
376
376
// Linux binaries sometimes have an OS identifier of zero, even though 3 is the correct one
377
- BinaryViewType::RegisterPlatform (" ELF" , 0 , ppc, platform);
378
- BinaryViewType::RegisterPlatform (" ELF" , 3 , ppc, platform);
379
- BinaryViewType::RegisterPlatform (" ELF" , 0 , ppcle, platformle);
380
- BinaryViewType::RegisterPlatform (" ELF" , 3 , ppcle, platformle);
377
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platform);
378
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platform);
379
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platformle);
380
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platformle);
381
381
}
382
382
383
383
Ref<Architecture> ppc64 = Architecture::GetByName (" ppc64" );
@@ -392,10 +392,10 @@ extern "C"
392
392
Platform::Register (" linux" , platform);
393
393
Platform::Register (" linux" , platformle);
394
394
// Linux binaries sometimes have an OS identifier of zero, even though 3 is the correct one
395
- BinaryViewType::RegisterPlatform (" ELF" , 0 , ppc64, platform);
396
- BinaryViewType::RegisterPlatform (" ELF" , 3 , ppc64, platform);
397
- BinaryViewType::RegisterPlatform (" ELF" , 0 , ppc64le, platformle);
398
- BinaryViewType::RegisterPlatform (" ELF" , 3 , ppc64le, platformle);
395
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platform);
396
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platform);
397
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platformle);
398
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platformle);
399
399
}
400
400
401
401
Ref<Architecture> mipsel = Architecture::GetByName (" mipsel32" );
@@ -421,18 +421,18 @@ extern "C"
421
421
Platform::Register (" linux" , platformBE64);
422
422
Platform::Register (" linux" , platformBE64cn);
423
423
// Linux binaries sometimes have an OS identifier of zero, even though 3 is the correct one
424
- BinaryViewType::RegisterPlatform (" ELF" , 0 , mipsel, platformLE);
425
- BinaryViewType::RegisterPlatform (" ELF" , 0 , mipseb, platformBE);
426
- BinaryViewType::RegisterPlatform (" ELF" , 0 , mips3el, platform3LE);
427
- BinaryViewType::RegisterPlatform (" ELF" , 0 , mips3eb, platform3BE);
428
- BinaryViewType::RegisterPlatform (" ELF" , 0 , mips64eb, platformBE64);
429
- BinaryViewType::RegisterPlatform (" ELF" , 0 , cnmips64eb, platformBE64cn);
430
- BinaryViewType::RegisterPlatform (" ELF" , 3 , mipsel, platformLE);
431
- BinaryViewType::RegisterPlatform (" ELF" , 3 , mipseb, platformBE);
432
- BinaryViewType::RegisterPlatform (" ELF" , 3 , mips3el, platform3LE);
433
- BinaryViewType::RegisterPlatform (" ELF" , 3 , mips3eb, platform3BE);
434
- BinaryViewType::RegisterPlatform (" ELF" , 3 , mips64eb, platformBE64);
435
- BinaryViewType::RegisterPlatform (" ELF" , 3 , cnmips64eb, platformBE64cn);
424
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platformLE);
425
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platformBE);
426
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platform3LE);
427
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platform3BE);
428
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platformBE64);
429
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platformBE64cn);
430
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platformLE);
431
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platformBE);
432
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platform3LE);
433
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platform3BE);
434
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platformBE64);
435
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platformBE64cn);
436
436
}
437
437
438
438
Ref<Architecture> rv32 = Architecture::GetByName (" rv32gc" );
@@ -443,8 +443,8 @@ extern "C"
443
443
platform = new LinuxRiscVPlatform (rv32, " linux-rv32gc" );
444
444
Platform::Register (" linux" , platform);
445
445
// Linux binaries sometimes have an OS identifier of zero, even though 3 is the correct one
446
- BinaryViewType::RegisterPlatform (" ELF" , 0 , rv32, platform);
447
- BinaryViewType::RegisterPlatform (" ELF" , 3 , rv32, platform);
446
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platform);
447
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platform);
448
448
}
449
449
450
450
Ref<Architecture> rv64 = Architecture::GetByName (" rv64gc" );
@@ -455,8 +455,8 @@ extern "C"
455
455
platform = new LinuxRiscVPlatform (rv64, " linux-rv64gc" );
456
456
Platform::Register (" linux" , platform);
457
457
// Linux binaries sometimes have an OS identifier of zero, even though 3 is the correct one
458
- BinaryViewType::RegisterPlatform (" ELF" , 0 , rv64, platform);
459
- BinaryViewType::RegisterPlatform (" ELF" , 3 , rv64, platform);
458
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platform);
459
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platform);
460
460
}
461
461
462
462
#ifdef ULTIMATE_EDITION
@@ -468,8 +468,8 @@ extern "C"
468
468
platform = new LinuxCSkyV1Platform (cskyv1, " linux-csky_le_v1" );
469
469
Platform::Register (" linux" , platform);
470
470
// Linux binaries sometimes have an OS identifier of zero, even though 3 is the correct one
471
- BinaryViewType::RegisterPlatform (" ELF" , 0 , cskyv1, platform);
472
- BinaryViewType::RegisterPlatform (" ELF" , 3 , cskyv1, platform);
471
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platform);
472
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platform);
473
473
}
474
474
475
475
Ref<Architecture> cskyv2 = Architecture::GetByName (" csky_le" );
@@ -480,8 +480,8 @@ extern "C"
480
480
platform = new LinuxCSkyV2Platform (cskyv2, " linux-csky_le" );
481
481
Platform::Register (" linux" , platform);
482
482
// Linux binaries sometimes have an OS identifier of zero, even though 3 is the correct one
483
- BinaryViewType::RegisterPlatform (" ELF" , 0 , cskyv2, platform);
484
- BinaryViewType::RegisterPlatform (" ELF" , 3 , cskyv2, platform);
483
+ BinaryViewType::RegisterPlatform (" ELF" , 0 , platform);
484
+ BinaryViewType::RegisterPlatform (" ELF" , 3 , platform);
485
485
}
486
486
#endif
487
487
0 commit comments