Add basic support for signal on amd64.
Can pass sigtest1.c
Signed-off-by: Yifan Pi <piyifan@qq.com>