mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:16:04 +00:00
[NDK][CMAKE] Introduce DATA_SEG and CODE_SEG macro
These are for putting code and data to non-default sections At the same time, move INIT section attributes declaration to cmake files
This commit is contained in:
parent
ba447018c8
commit
658f742c2d
4 changed files with 9 additions and 15 deletions
|
@ -52,7 +52,7 @@ function(add_hal _halname)
|
|||
set_module_type(${_halname} kerneldll ENTRYPOINT HalInitSystem 8)
|
||||
add_cd_file(TARGET ${_halname} DESTINATION reactos/system32 NO_CAB FOR all)
|
||||
if(MSVC)
|
||||
add_target_link_flags(${_halname} "/ignore:4216 /ignore:4078")
|
||||
add_target_link_flags(${_halname} "/ignore:4216 /SECTION:INIT,ERWD")
|
||||
else()
|
||||
target_link_libraries(${_halname} -lgcc)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue