1 /* File generated automatically from mplayer_wine.spec; do not edit! */
2 /* This file can be copied, modified and distributed without restriction. */
4 extern char pe_header
[];
5 asm(".section .text\n\t"
7 "pe_header:\t.fill 4096,1,0\n\t");
8 static const char dllname
[] = "mplayer_wine";
10 extern int __wine_spec_exports
[];
12 #define __stdcall __attribute__((__stdcall__))
17 void *OriginalFirstThunk
;
18 unsigned int TimeDateStamp
;
19 unsigned int ForwarderChain
;
26 { 0, 0, 0, "kernel32.dll", &imports
.data
[0] },
27 { 0, 0, 0, "ntdll.dll", &imports
.data
[5] },
38 "\0\0RtlRaiseException",
39 "\0\0__wine_get_main_args",
45 static void __asm__dummy_import(void) {
48 asm(".data\n\t.align 8\n"
49 "\t.type ExitProcess,@function\n"
50 "\t.globl ExitProcess\n"
51 "ExitProcess:\n\tjmp *(imports+60)\n\tmovl %esi,%esi\n"
52 "\t.type FreeLibrary,@function\n"
53 "\t.globl FreeLibrary\n"
54 "FreeLibrary:\n\tjmp *(imports+64)\n\tmovl %esi,%esi\n"
55 "\t.type GetProcAddress,@function\n"
56 "\t.globl GetProcAddress\n"
57 "GetProcAddress:\n\tjmp *(imports+68)\n\tmovl %esi,%esi\n"
58 "\t.type LoadLibraryA,@function\n"
59 "\t.globl LoadLibraryA\n"
60 "LoadLibraryA:\n\tjmp *(imports+72)\n\tmovl %esi,%esi\n"
61 "\t.type RtlRaiseException,@function\n"
62 "\t.globl RtlRaiseException\n"
63 "RtlRaiseException:\n\tjmp *(imports+80)\n\tmovl %esi,%esi\n"
64 "\t.type __wine_get_main_args,@function\n"
65 "\t.globl __wine_get_main_args\n"
66 "__wine_get_main_args:\n\tjmp *(imports+84)\n\tmovl %esi,%esi\n"
75 extern void __stdcall
ExitProcess(int);
76 static void __wine_exe_main(void)
78 extern int main( int argc
, char *argv
[] );
79 extern int __wine_get_main_args( char ***argv
);
80 _ARGC
= __wine_get_main_args( &_ARGV
);
81 ExitProcess( main( _ARGC
, _ARGV
) );
84 static const struct image_nt_headers
89 short NumberOfSections
;
91 void *PointerToSymbolTable
;
93 short SizeOfOptionalHeader
;
94 short Characteristics
;
98 char MajorLinkerVersion
, MinorLinkerVersion
;
100 int SizeOfInitializedData
;
101 int SizeOfUninitializedData
;
102 void *AddressOfEntryPoint
;
106 int SectionAlignment
;
108 short MajorOperatingSystemVersion
;
109 short MinorOperatingSystemVersion
;
110 short MajorImageVersion
;
111 short MinorImageVersion
;
112 short MajorSubsystemVersion
;
113 short MinorSubsystemVersion
;
114 int Win32VersionValue
;
119 short DllCharacteristics
;
120 int SizeOfStackReserve
;
121 int SizeOfStackCommit
;
122 int SizeOfHeapReserve
;
123 int SizeOfHeapCommit
;
125 int NumberOfRvaAndSizes
;
126 struct { const void *VirtualAddress
; int Size
; } DataDirectory
[16];
132 sizeof(nt_header
.OptionalHeader
),
157 { &imports
, sizeof(imports
) },
164 static void __asm__dummy_dll_init(void) {
165 #endif /* defined(__GNUC__) */
166 asm("\t.section .init ,\"ax\"\n"
167 "\tcall __wine_spec_mplayer_wine_init\n"
171 #endif /* defined(__GNUC__) */
173 void __wine_spec_mplayer_wine_init(void)
175 extern void __wine_dll_register( const struct image_nt_headers
*, const char * );
176 extern void *__wine_dbg_register( char * const *, int );
177 __wine_dll_register( &nt_header
, "mplayer_wine.exe" );