[FREELDR] Fix missing exports and .edata section after commit 728694f6.

CORE-18880
This commit is contained in:
Hermès Bélusca-Maïto 2023-03-19 17:46:00 +01:00
parent 996713515b
commit 995630ccec
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 5 additions and 11 deletions

View file

@ -128,10 +128,10 @@ list(APPEND FREELDR_BASE_SOURCE
ntldr/ntldropts.c
lib/rtl/libsupp.c)
# if(ARCH STREQUAL "i386")
# # Must be included together with disk/scsiport.c
# list(APPEND FREELDR_BASE_SOURCE
# ${CMAKE_CURRENT_BINARY_DIR}/freeldr_pe.def)
# endif()
if(ARCH STREQUAL "i386")
# Must be included together with disk/scsiport.c
list(APPEND FREELDR_BASE_SOURCE
${CMAKE_CURRENT_BINARY_DIR}/freeldr_pe.def)
endif()
include(pcat.cmake)

View file

@ -185,12 +185,6 @@ list(APPEND PCATLDR_BASE_SOURCE
${freeldr_base_asm}
${FREELDR_BASE_SOURCE})
if(ARCH STREQUAL "i386")
# Must be included together with disk/scsiport.c
list(APPEND FREELDR_BASE_SOURCE
${CMAKE_CURRENT_BINARY_DIR}/freeldr_pe.def)
endif()
add_executable(freeldr_pe ${PCATLDR_BASE_SOURCE})
set_target_properties(freeldr_pe