Give end-marker symbols their own addresses to work around a linker bug (#66999)
It seems there is a linker bug related to control-flow guard that is causing #66969. In eb8460fd a thunktemplates.asm file was added that has a LEAF_END_MARKED at the end of the file. This creates two symbols for the same upcoming address. Normally that should be fine, but in this case it causes the linker to place the same address twice in a CFG table in the PE file. This causes the kernel to fail while loading the image. A simple workaround would be to add a nop at the end of thunktemplates.asm, but @janvorli suggested giving these symbols their own address in all cases for goodness when debugging. We already do so for Windows x64 it looks like. Fix #66969
Showing
想要评论请 注册 或 登录