Jinyang He 74a2810b7c 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>
2020-11-27 10:19:12 +01:00
..
2018-10-31 08:54:16 -07:00
2020-05-22 09:09:01 +02:00
2020-05-07 11:55:47 +02:00
2013-02-01 10:00:22 +01:00
2020-05-22 09:09:01 +02:00
2020-07-27 14:31:08 -04:00
2020-05-22 09:09:01 +02:00
2020-03-31 08:51:45 -07:00
2020-05-15 14:53:19 +02:00
2020-05-22 09:13:32 +02:00
2020-07-26 10:18:35 +02:00
2020-10-16 12:40:55 -07:00
2014-05-24 00:07:01 +02:00
2020-05-07 11:55:47 +02:00