in windows i have SEH, fs:0 point to TEB wich contain handler for exception.
when exception occur handler is called with information about exception and context to allow changing eip for example.
how do i do simillar thing on linux? i belive there must be some sort of exception handling. From my understanding, if i force excpetion by executing privileged instruction, dividing by 0, accessing not mapped address, and so on, kernel will send signal to my process. So instead of creating SEH frame i must temporary change signal handler. Is that correct?
I write in asm i dont care about c methods like try/except.
linux x86 exception handling
Started by innerLOL, Jan 02 2010 05:40 AM
1 reply to this topic


Sign In
Create Account


Back to top









