flat assembler
Message board for the users of flat assembler.

Index > Main > PE optioanl Header

Author
Thread Post new topic Reply to topic
Ali.Z



Joined: 08 Jan 2018
Posts: 732
Ali.Z 01 Jan 2021, 17:50
hey Tomasz,

is there any chance of getting an update that would allow us to set the RVA and size of sections in data directories in optional header?

example:
- exception

currently its only possible by editing optional header using pe editing tools such as ntcore suite.

~

edit:
just to tell more ...
i have no use of this, but since i made an example of SEH for windows on x86; i wanted to follow up with x64-bit SEH; making an exception section is nothing special, but after every compile of the source .. one may find it time consuming to manually calculate the size of exception directory and edit the optional header to set exception directory RVA and size.

_________________
Asm For Wise Humans
Post 01 Jan 2021, 17:50
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 01 Jan 2021, 19:05
The "data" directive allows a number of directory as its argument instead of a keyword, for example:
Code:
section '.pdata' readable
data 3
  ; ...
end data    
Post 01 Jan 2021, 19:05
View user's profile Send private message Visit poster's website Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 732
Ali.Z 01 Jan 2021, 20:39
thank you, hopefully i will post the 64-bit example within a day or two.

_________________
Asm For Wise Humans
Post 01 Jan 2021, 20:39
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.