summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorJinyang He <hejinyang@loongson.cn>2020-11-25 13:07:18 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-11-27 12:19:12 +0300
commit74a2810b7c1fcd60c87a8c47f95660628e00e97c (patch)
tree948869d60c1ad0024b8a4bbe6260782b7346b7e1 /scripts/gdb/linux/tasks.py
parent91c7a7e0656de077911332f2acdb60f6fd4a134f (diff)
downloadlinux-74a2810b7c1fcd60c87a8c47f95660628e00e97c.tar.xz
MIPS: KASLR: Correct valid bits in apply_r_mips_26_rel()
Apply_r_mips_26_rel() relocates instructions like j, jal and etc. These instructions consist of 6bits function field and 26bits address field. The value of target_addr as follows, ================================================================= | high 4bits | low 28bits | ================================================================= |the high 4bits of this PC | the low 26bits of instructions << 2| ================================================================= Thus, loc_orig and log_new both need high 4bits rather than high 6bits. Signed-off-by: Jinyang He <hejinyang@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions