This project was aimed to be used for llvm-msvc [link]
Problem:
if (StrStr(windows_name_, pInfo->windows_name_) > 0)
Problem:
printf(__FUNCTION__ "Hello, world!\n");
Problem:
Fix the characteristics of some sections like ".voltbl". Or the program will be crash sometimes.
Problem:
void OutputTrace(int place_holder, ...)
{
va_list args;
va_start(args, place_holder);
bool unicode = va_arg(args, bool);
}
Problem:
1>lld-link : error : could not open '/RELEASE': no such file or directory
1>lld-link : error : could not open '/kernel': no such file or directory
1>lld-link : error : could not open '/pdbcompress': no such file or directory
Problem:
1>lld-link : error : duplicate symbol: g_GlobalNotifyRecord
1>>>> defined at x64\Debug\Broadcast.obj
1>>>> defined at x64\Debug\Vpid.obj
Problem:
Null ptr is invalid.
Problem:
Unused IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE
Problem:
#define ZERO_MEMORY(addr,size) while (size-->0)\
{\
*addr++ = 0;\
}\
->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
will be optimized to 'memset'.
Problem:
template <typename R, typename... Args>
struct MyTestTemplate;
template <typename R, typename... Args>
struct MyTestTemplate<R(__stdcall)(Args...)>
{
};
->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
error : function cannot return function type 'R (Args...)'
Problem:
__m128i x1, x2;
__m128i x3 = _mm_shuffle_epi8(x1, x2);
->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
_mm_shuffle_epi8 needs '-mssse3'
Problem:
#pragma comment(linker, "/ALIGN:0x10000")
->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Error:/ALIGN: is not allowed in .drectve
Problem:
error : invalid application of 'sizeof' to an incomplete type 'xxx'
Problem:
error : static_cast from a to b, which are not related by inheritance, is not allowed
Problem:
#define MY_TEST 6
#define TEST_222(major) (0x##major)
int
main()
{
int test2 = TEST_222(MY_TEST);
return 0;
}
->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
error : invalid suffix 'xMY_TEST' on integer constant
Problem:
1>util\log.c(492,10): fatal error : UTF-16 (LE) byte order mark detected in 'util/ioctl.inc', but encoding is not supported
Problem:
#define DBGKP_FIELD_FROM_IMAGE_OPTIONAL_HEADER(hdrs, field) ((hdrs)->OptionalHeader.##field)
CreateThreadArgs->StartAddress = UlongToPtr(
DBGKP_FIELD_FROM_IMAGE_OPTIONAL_HEADER((PIMAGE_NT_HEADERS32)NtHeaders, ImageBase) +
DBGKP_FIELD_FROM_IMAGE_OPTIONAL_HEADER(
(PIMAGE_NT_HEADERS32)NtHeaders, AddressOfEntryPoint));
->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
error : pasting formed '.AddressOfEntryPoint', an invalid preprocessing token [-Winvalid-token-paste]