XboxDev / nxdk-pdclib

The Public Domain C Library (adapted for original Xbox / nxdk toolchain)
http://pdclib.rootdirectory.de
Creative Commons Zero v1.0 Universal
19 stars 9 forks source link

xbox: Rename XboxCRTEntry to WinMainCRTStartup #38

Closed thrimbor closed 3 years ago

thrimbor commented 3 years ago

This renames the entry point from XboxCRTEntry to WinMainCRTStartup. This doesn't change any behavior, but allows us to drop the -entry:XboxCRTEntry linker parameter in nxdk (will have to be done in the same commit as the submodule update, or the build will break).

dracc commented 3 years ago

Looks good to me. 👍

thrimbor commented 3 years ago

Hm, thinking about it, I might close this and #39, and instead move all of crt0 to the nxdk repo instead. I could then also integrate the linker parameters to include _fltused and _xlibc_check_stack into it - this would keep LTO working while reducing the amount of necessary linker parameters even further.