# HG changeset patch # User reimar # Date 1263654257 0 # Node ID e1e31e655befcb11f2a1dae17e38cb0691197bf7 # Parent e15646d685c54c5f76ac26a97446e07271e9aacc Document some of the ext_stub magic. diff -r e15646d685c5 -r e1e31e655bef loader/win32.c --- a/loader/win32.c Sat Jan 16 15:02:49 2010 +0000 +++ b/loader/win32.c Sat Jan 16 15:04:17 2010 +0000 @@ -5326,6 +5326,8 @@ static WIN_BOOL WINAPI ext_stubs(void) { + // NOTE! these magic values will be replaced at runtime, make sure + // add_stub can still find them if you change them. volatile int idx = 0x0deadabc; // make sure gcc does not do eip-relative call or something like that void (* volatile my_printf)(char *, char *) = (void *)0xdeadfbcd;