Mercurial > mplayer.hg
comparison loader/win32.c @ 30278:e1e31e655bef
Document some of the ext_stub magic.
author | reimar |
---|---|
date | Sat, 16 Jan 2010 15:04:17 +0000 |
parents | e15646d685c5 |
children | 8ee6bb538f53 |
comparison
equal
deleted
inserted
replaced
30277:e15646d685c5 | 30278:e1e31e655bef |
---|---|
5324 LL(msvcp60) | 5324 LL(msvcp60) |
5325 }; | 5325 }; |
5326 | 5326 |
5327 static WIN_BOOL WINAPI ext_stubs(void) | 5327 static WIN_BOOL WINAPI ext_stubs(void) |
5328 { | 5328 { |
5329 // NOTE! these magic values will be replaced at runtime, make sure | |
5330 // add_stub can still find them if you change them. | |
5329 volatile int idx = 0x0deadabc; | 5331 volatile int idx = 0x0deadabc; |
5330 // make sure gcc does not do eip-relative call or something like that | 5332 // make sure gcc does not do eip-relative call or something like that |
5331 void (* volatile my_printf)(char *, char *) = (void *)0xdeadfbcd; | 5333 void (* volatile my_printf)(char *, char *) = (void *)0xdeadfbcd; |
5332 my_printf("Called unk_%s\n", export_names[idx]); | 5334 my_printf("Called unk_%s\n", export_names[idx]); |
5333 return 0; | 5335 return 0; |