I created a assembly referencing invalid address.
.global main
main:
push %eax
call 0x12341234 # invalid address
I compiled and run it on linux, and the result was segmentation fault
of course.
However I want to do something like call my_exception_handler
whenever it referencing invalid address, instead of raising segmentation fault
.
Is there any method to do this in assembly level?