win32: allow self-host with tcc 0.9.27 - part 1 of 2

Commit 03d58b0 ("arm64-win32 support : runtime", 2026-04-04) added
IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE to winnt.h, and it was later
used in tccpe.c, but older tcc like 0.9.27 don't have it.

So define IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE is missing.
This commit is contained in:
Avi Halachmi (:avih) 2026-07-14 09:22:07 +03:00
parent 4ed845d0db
commit a667b53fcb

View File

@ -292,6 +292,11 @@ typedef struct _IMAGE_BASE_RELOCATION {
#endif /* ndef IMAGE_NT_SIGNATURE */ #endif /* ndef IMAGE_NT_SIGNATURE */
/* ----------------------------------------------------------- */ /* ----------------------------------------------------------- */
#ifndef IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE
/* allow self-host build with tcc 0.97 - doesn't have this in winnt.h */
#define IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE 0x0040
#endif
#pragma pack(push, 1) #pragma pack(push, 1)
struct pe_header struct pe_header
{ {