flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
SFeLi 20 Sep 2009, 05:17
Maybe your forgot to mangle a name of your function?
Code: ; foo.asm format ms coff public DllEntryPoint as '__DllMainCRTStartup@12' public Foo as '_Foo@8' DllEntryPoint: xor eax,eax inc eax retn 0x0c Foo: mov eax,[esp+0x04] add eax,[esp+0x08] retn 0x08 ; foo.def LIBRARY FOO EXPORTS Foo ; to link it: link /DLL /DEF:foo.def foo.obj And here you can read about setting ordinals in def-files. |
|||
![]() |
|
roxaz 20 Sep 2009, 07:49
well yah i did not mangle names, thought i got to provide exact name in def file as it is in def..
EDIT: question tho.. i still have to specify mangled name in def file, so why cant i have unmangled name and specify it in def file? My def is like this: Code: EXPORTS
SysAllocString=___func__SysAllocString@0 @2
|
|||
![]() |
|
SFeLi 20 Sep 2009, 18:45
You should have the same public name as you specify in .def file:
Code: DEF: SysAllocaString @2 ASM: public SysAllocString DEF: SysAllocaString=SysAllocString @2 ASM: public SysAllocString as 'SysAllocString' (any combinations) DEF: SysAllocString=___func__SysAllocString@0 @2 ASM: public mySysAllocString as '___func__SysAllocString@0' |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.