flat assembler
Message board for the users of flat assembler.
Index
> Main > base address of the data and the code? |
Author |
|
roticv 22 Dec 2003, 12:23
All sections are aligned to 1000h. 400000 is your image base. Since your code section comes before your data section and the size of your code section is smaller than 1000h, therefore the code section starts at 401000h and your data section 402000h. Why would you want to change it?
What data? As long as you know your image base value (which would be usually 400000), everything is simple. |
|||
22 Dec 2003, 12:23 |
|
HarryTuttle 22 Dec 2003, 13:10
the question is not why, the question is how?
if you want to know why: becaus I am a Human, and like most of them I am curious. -------------- aloha, Privalov ,please say something. _________________ Microsoft: brings power of yesterday to computers of today. |
|||
22 Dec 2003, 13:10 |
|
roticv 22 Dec 2003, 13:59
Use a PE editor to edit the imagebase value and the Virtual Address, and you get different values.
Once you know the imagebase, you know where is the image mapped onto. Using that info you can read the section header and from the section header and the pe header you can know what's the address of data and code section. |
|||
22 Dec 2003, 13:59 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.