mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:55:41 +00:00
[PEFIXUP] Fixup of resource sections in GCC builds. (#3594)
Make resource sections discardable for kernel-mode drivers and DLLs.
This commit is contained in:
parent
0fe7fdbdea
commit
6e33c8ffd3
2 changed files with 12 additions and 6 deletions
|
@ -307,7 +307,7 @@ function(set_module_type_toolchain MODULE TYPE)
|
|||
# Fixup section characteristics
|
||||
# - Remove flags that LD overzealously puts (alignment flag, Initialized flags for code sections)
|
||||
# - INIT section is made discardable
|
||||
# - .rsrc is made read-only
|
||||
# - .rsrc is made read-only and discardable
|
||||
# - PAGE & .edata sections are made pageable.
|
||||
add_custom_command(TARGET ${MODULE} POST_BUILD
|
||||
COMMAND native-pefixup --${TYPE} $<TARGET_FILE:${MODULE}>)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue