DynamoRIO / dynamorio

Dynamic Instrumentation Tool Platform
Other
2.67k stars 566 forks source link

i#3544: RV64: Mangle pc-relative addressing destining to tp #7068

Closed ziyao233 closed 2 weeks ago

ziyao233 commented 3 weeks ago

Reuse mangle_stolen_reg_and_tp_reg() to simplify register spilling.

This handles code sequence like

_start:
        lla             tp,             slot
    lw              a0,             0(tp)
    li              a7,             93
    ecall
slot:   .long           0x5a

Issue: #3544

ziyao233 commented 2 weeks ago

I think this PR is ready for merging :)