Building binary files for retpoline.

  • Thread starter Thread starter Sam_Tsai
  • Start date Start date
S

Sam_Tsai

Guest
There are some questions about building binary files for retpoline.

[Build environment]

OS : Win10 1803 (Build 17134.590)

Visual Studio 2017 (15.9.12)

WDK 1809 (17763) with Workaround for 1809 WDK/EWDK

SDK 1903 18362.1



[Modify]

Add the Complier and linker flags on my project.



[Question for the sys files]

  1. There is an error when I build our KMDF driver (KMDF Version : 1.11)

But it is no problem if I upgrade to KMDF version to 1.15.

Does it mean those build flags is supported after KMDF version 1.15?



[Question for the dll and exe files]

  1. I always get the following errors when I build MFC *.exe and *.dll project.

...

1>libucrt.lib(mbstowcs.obj) : warning LNK4287: object file is missing /guard:retpoline metadata
1>libcmt.lib(pesect.obj) : warning LNK4287: object file is missing /guard:retpoline metadata
1>libvcruntime.lib(strrchr.obj) : warning LNK4287: object file is missing /guard:retpoline metadata
1>libvcruntime.lib(jmpuwind.obj) : warning LNK4287: object file is missing /guard:retpoline metadata

...

How do I fix those errors?

Continue reading...
 
Back
Top