_stubs.S
i386-mingw32-gcc -c -x assembler-with-cpp -g -I../../../include -I../../../w32api/include -D__ASM__ -D_M_IX86 -c _stubs.S -o _stubs.o _stubs.S: Assembler messages: _stubs.S:13: Error: invalid character '_' in mnemonic _stubs.S:14: Warning: rest of line ignored; first ignored character is `:' _stubs.S:20: Error: invalid character '_' in mnemonic _stubs.S:21: Warning: rest of line ignored; first ignored character is `:' _stubs.S:27: Error: invalid character '_' in mnemonic _stubs.S:28: Warning: rest of line ignored; first ignored character is `:' make: *** [_stubs.o] Error 1
James Tabor wrote:
Hi! Casper Hornstrup wrote:
Which gcc version do you use? Can you send me your _hooks.c?
Casper
gcc 3.3.1 ../configure --prefix=/usr --target=i386-mingw32 -v and bin 2.15.90.
Something is wrong with the lf/cr's. James
/* This file is autogenerated. */ #include <windows.h> #include "regtests.h"
API_DESCRIPTION ExternalDependencies[] = { {"ntdll.dll", "RtlAllocateHeap@12 ", NULL, NULL}, {"ntdll.dll", "RtlFreeHeap@12 ", NULL, NULL}, {"msvcrt.dll", "printf ", NULL, NULL}, };
#define ExternalDependencyCount 4 ULONG MaxExternalDependency = ExternalDependencyCount - 1;
PVOID STDCALL FrameworkGetHook(ULONG index) { return FrameworkGetHookInternal(index); }
/* This file is autogenerated. */ passthrough: call _FrameworkGetHook@4 test %eax, %eax je .return jmp *%eax .return: /* This will most likely corrupt the stack */ ret
.globl _RtlAllocateHeap@12
_RtlAllocateHeap@12 : pushl $0 jmp passthrough
.globl _RtlFreeHeap@12
_RtlFreeHeap@12 : pushl $1 jmp passthrough
.globl _printf
_printf : pushl $2 jmp passthrough