You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The whole process of making a ELF using gcc and then wrapping it into a PE is dumb. There are tools you can use to just make a PE directly. People seem to prefer LLVM/clang for that, since it supports all architectures by default via a --target switch.
The basic CFLAGS is --target $(GCC_ARCH)-unknown-windows -ffreestanding -fshort-wchar -fno-stack-protector. You have most of that.
The LDFLAGS are basically the same as what you have right now.
The text was updated successfully, but these errors were encountered:
The whole process of making a ELF using gcc and then wrapping it into a PE is dumb. There are tools you can use to just make a PE directly. People seem to prefer LLVM/clang for that, since it supports all architectures by default via a
--target
switch.--target $(GCC_ARCH)-unknown-windows -ffreestanding -fshort-wchar -fno-stack-protector
. You have most of that.The text was updated successfully, but these errors were encountered: