flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 26 Jun 2012, 13:22
Change this line:
Code: imgbase equ 0 |
|||
![]() |
|
Kazyaka 26 Jun 2012, 18:36
Program doesn't work with zero base.
|
|||
![]() |
|
revolution 26 Jun 2012, 21:53
You are trying to base your image at zero so you will need to include relocations if you want Windows to load the program.
|
|||
![]() |
|
Feryno 27 Jun 2012, 07:21
Kazyaka wrote: Program doesn't work with zero base. OS usually loads image at 10000h when the base is set to 0 in the header you can produce file with image base at 0 by: format PE at 0 |
|||
![]() |
|
Kazyaka 27 Jun 2012, 09:31
I've added:
Code: format PE at 0 and now I've error: The application failed to initialize properly (0xc0000018). Click on OK to terminate the application. I've other idea. May if I use org (or macro orgup) I don't have to add "imgbase" to everything? |
|||
![]() |
|
revolution 27 Jun 2012, 10:24
So did you put in any relocations?
Without relocs the OS can't load your program at 0x0000 |
|||
![]() |
|
Kazyaka 27 Jun 2012, 17:52
Sorry, but I don't know how to do it.
|
|||
![]() |
|
mindcooler 28 Jun 2012, 01:11
That code looks familiar
![]() You could Code: org imgbase in the start of your code and work with Virtual Addresses instead of Relative Virtual Addresses, then imgbase will be included in all addresses and you would have to subtract the imgbase where a RVA is expected instead the converse. _________________ This is a block of text that can be added to posts you make. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.