Skip to content

Commit

Permalink
Add more math exports, APISETs base addresses suck
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Sep 29, 2023
1 parent 50caf37 commit a2c1ae5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dll/apisets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function (add_apiset apiset_name baseaddress)
${CMAKE_CURRENT_BINARY_DIR}/${apiset_name}.def)

add_dependencies(${apiset_name} xdk)
set_module_type(${apiset_name} module UNICODE IMAGEBASE ${baseaddress})
#set_module_type(${apiset_name} module UNICODE IMAGEBASE ${baseaddress})
set_module_type(${apiset_name} module UNICODE) #Yeah yeah arm64 is fucken weird, i gotta figure out a better solution..

if(NOT MSVC)
target_compile_options(${apiset_name} PRIVATE -fno-builtin)
Expand Down
2 changes: 1 addition & 1 deletion dll/apisets/api-ms-win-crt-math-l1-1-0.spec
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
@ stub expm1f
@ stub expm1l
@ stdcall fabs() msvcrt.fabs
@ stdcall -arch=arm fabsf() msvcrt.fabsf
@ stdcall -arch=arm,arm64 fabsf() msvcrt.fabsf
@ stub fdim
@ stub fdimf
@ stub fdiml
Expand Down
4 changes: 2 additions & 2 deletions dll/win32/msvcrt/msvcrt.spec
Original file line number Diff line number Diff line change
Expand Up @@ -1316,9 +1316,9 @@
@ cdecl div(long long)
@ cdecl exit(long)
@ cdecl exp(double)
@ cdecl -arch=x86_64,arm expf(long)
@ cdecl -arch=x86_64,arm,arm64 expf(long)
@ cdecl fabs(double)
@ cdecl -arch=arm fabsf(double)
@ cdecl -arch=arm,arm64 fabsf(double)
@ cdecl fclose(ptr)
@ cdecl feof(ptr)
@ cdecl ferror(ptr)
Expand Down

0 comments on commit a2c1ae5

Please sign in to comment.