[8/11] patch series to port ASAN for riscv64
Depends On D87577
EccoTheDolphin on Sat, Sep 12, 6:15 PM.Authored by
Looks like it does.
clang -O0 int foo(int): addi sp, sp, -32 sd ra, 24(sp) sd s0, 16(sp) addi s0, sp, 32 gcc -O0 -march=rv64imafdc -mabi=lp64d int foo(int): addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32
Example with gcc/clang (-O2 -fno-omit-frame-pointer')
They match too.
Is this something it would be useful for the psABI to specify? I can look at an addition along the lines of "If you save ra, it must go in a certain place in the frame. If you save fp, it also has to go in a certain place." I think other ABIs require this too, but I could be wrong.
Documenting this would be a good idea.