flat assembler
Message board for the users of flat assembler.
Index
> Windows > DLL bug? |
Author |
|
caoyunbin001 12 Apr 2012, 15:39
when assembled with 'relc' fixups,
this dll crashes on LoadLibraryW. when removed 'relc' fixups, this dll cannot be loaded to other address but have to be loaded to its IMAGEBASE. how to fix this? did some homework: not the empty section bug, the size of section 'relc' is not zero. any help is appreciated.
|
|||||||||||||||||||||
12 Apr 2012, 15:39 |
|
caoyunbin001 13 Apr 2012, 06:05
LocoDelAssembly wrote: At DllMain you have " mov ebx,GenerateIncFile", what is this for? It doesn't look like you can take any benefit out of it and at the same time you are violating the stdcall convention so you may be causing the caller of DllMain to crash. at first, i tried to export the address of GenerateIncFile out of the DllMain, but it doesn't work,you can delete that line. see the screenshot.
|
||||||||||
13 Apr 2012, 06:05 |
|
LocoDelAssembly 13 Apr 2012, 15:55
Does the example that comes with fasm work? I don't know what could be the source of complain.
Try using canonical names for the sections to see if there is any improvement (i.e. '.idata' for imports, '.reloc' for fixups, etc.). |
|||
13 Apr 2012, 15:55 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.