Skip to content

Try not to use ELF and GNU-EFI CRT #1

@Artoria2e5

Description

@Artoria2e5

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions