#Garbage Dispatcher Edit#
#Removed Full Page Advertisement for Vaccuum Cleaner#
That's easy: mov eax, offset start
What do you need it for?
lea eax(rax) ,start (mai,WinMain) is more secured.
The start adress is dynamically allowed by the linker,the use of offset had good chance to be false.
Quote from: TouEnMasm on February 22, 2021, 07:04:04 PMthe use of offset had good chance to be false.
Interesting, can you post an example?
https://docs.microsoft.com/en-us/cpp/build/reference/dynamicbase-use-address-space-layout-randomization
Address of entry point is in PE-header.
Quote from: TimoVJL on February 22, 2021, 07:58:24 PM
https://docs.microsoft.com/en-us/cpp/build/reference/dynamicbase-use-address-space-layout-randomization
Address of entry point is in PE-header.
Not really, the offset of _start symbol will ALSO be adjusted by the PE loader IF ASLR is used on a PE :D
So
mov eax,offset start
is safe to use with ASLR[/code]
Hi Bogdan, nice to see you :thup:
I agree with Jochen: Welcome back Bogdan. We've missed you.
Gunther
Hi,BogdanOntanu
we are glad to see you are back. :biggrin:
the developer of Sol_OS/Sol_asm, the Steel Soldier.
Hi all,
Thanks for your nice words ;)