History

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.

Avi Halachmi (:avih) committed 4 months ago

Commit a667b531 parent 4ed845d1 file · +5 −0Browse files

Unified · Split

tccpe.c+5−0
@@ -292,6 +292,11 @@ typedef struct _IMAGE_BASE_RELOCATION { · 291 unmodified lines
292#endif /* ndef IMAGE_NT_SIGNATURE */292#endif /* ndef IMAGE_NT_SIGNATURE */
293/* ----------------------------------------------------------- */293/* ----------------------------------------------------------- */
294 294
295#ifndef IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE
296 /* allow self-host build with tcc 0.97 - doesn't have this in winnt.h */
297 #define IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE 0x0040
298#endif
299
295#pragma pack(push, 1)300#pragma pack(push, 1)
296struct pe_header301struct pe_header
297{302{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t