flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
f0dder 14 Nov 2010, 18:24
drobole wrote: Also, what happened to You might want to keep relocs, though, to take advantage of ASLR on newer windows versions. |
|||
![]() |
|
drobole 14 Nov 2010, 18:29
f0dder wrote:
Is that to say that the process is guaranteed to reside entirely on a single virtual memory page (given a sane load address), so no relocation will be done either way? edit: After all that cleaning up of the framework it would be nice with a .reloc macro to get rid of that last section declaration. Not a big thing maybe, just seems intuitive |
|||
![]() |
|
rugxulo 15 Nov 2010, 18:12
Relocs are (I think) a relic of the past. Not sure about Win16 proper, but at least Win32s ["subset" for Win16] required 'em. So almost no PE .EXEs nowadays include 'em.
|
|||
![]() |
|
f0dder 15 Nov 2010, 18:24
rugxulo wrote: Relocs are (I think) a relic of the past. Not sure about Win16 proper, but at least Win32s ["subset" for Win16] required 'em. So almost no PE .EXEs nowadays include 'em. _________________ ![]() |
|||
![]() |
|
baldr 15 Nov 2010, 19:05
PE is compiled (or linked) to be loaded at appropriate virtual address (IMAGE_OPTIONAL_HEADER.ImageBase). When it can't (for main .Exe this rarely wil be the case, yet one can produce 0-based PE), base relocations are needed to adjust image so it can be loaded at different base virtual address. Consider two DLLs with the same base being loaded into the same process' VAS: first will probably load fine, second should be relocated, as its base address is already occupied.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.