[SDK:TOOLS] Add --driver option to pefixup

For now, this adds IMAGE_SCN_MEM_DISCARDABLE to the INIT section, and IMAGE_SCN_MEM_NOT_PAGED to sections which are not named PAGE or .reloc
This commit is contained in:
Jérôme Gardou 2021-02-24 10:14:40 +01:00 committed by Jérôme Gardou
parent 56b1baa3dd
commit 5489efcb1a
2 changed files with 74 additions and 13 deletions

View file

@ -308,7 +308,7 @@ endif()
function(fixup_load_config _target)
add_custom_command(TARGET ${_target} POST_BUILD
COMMAND native-pefixup "$<TARGET_FILE:${_target}>"
COMMAND native-pefixup --loadconfig "$<TARGET_FILE:${_target}>"
COMMENT "Patching in LOAD_CONFIG"
DEPENDS native-pefixup)
endfunction()