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
..
2020-10-18 09:27:10 -07:00
2020-03-25 11:50:48 +01:00
2018-11-09 10:23:19 -08:00
2019-11-15 14:38:29 +01:00
2019-11-15 14:38:29 +01:00
2018-11-08 11:20:57 -08:00
2016-05-09 12:00:01 +02:00
2020-09-21 22:14:24 +02:00
2019-11-26 10:33:08 -08:00
2020-03-05 16:47:35 +01:00
2020-03-05 16:47:35 +01:00
2020-03-05 16:47:35 +01:00
2020-05-22 09:14:32 +02:00
2020-03-05 16:47:35 +01:00
2020-03-05 16:47:35 +01:00
2019-05-30 11:26:32 -07:00
2020-05-22 09:12:52 +02:00
2019-05-30 11:26:32 -07:00
2020-10-12 12:05:40 +02:00
2020-10-12 12:05:16 +02:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2020-05-22 09:14:06 +02:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:28:39 +02:00
2018-07-17 09:40:17 -07:00
2019-05-30 11:26:32 -07:00
2020-05-22 09:09:01 +02:00
2020-10-12 12:04:50 +02:00
2020-10-12 12:04:50 +02:00
2020-08-17 13:00:24 +02:00
2020-07-31 17:52:47 +02:00
2019-06-19 17:09:55 +02:00
2020-09-21 22:15:03 +02:00
2020-03-05 16:47:35 +01:00
2020-05-07 11:55:47 +02:00
2013-02-01 10:00:22 +01:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-02-19 12:45:01 -08:00
2019-04-09 16:21:30 -07:00
2019-03-28 11:35:58 -07:00
2020-09-08 11:52:33 +02:00
2018-08-01 13:20:27 -07:00
2019-06-19 17:09:06 +02:00
2020-10-12 12:05:16 +02:00
2018-06-19 15:00:12 -07:00
2020-11-06 11:33:11 +01:00
2020-01-06 09:45:59 +01:00
2020-09-03 10:13:43 +02:00
2018-11-26 22:49:14 -08:00
2020-05-07 11:55:47 +02:00
2020-06-09 09:39:13 -07:00
2018-06-14 12:21:18 +09:00
2020-09-01 13:52:33 +02:00
2019-06-19 17:09:55 +02:00
2019-10-07 09:42:17 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-05-22 09:09:01 +02:00
2020-09-30 21:53:00 +02:00
2020-10-12 12:01:36 +02:00
2020-06-09 09:39:13 -07:00
2020-07-27 14:31:08 -04:00
2020-05-22 09:09:01 +02:00
2018-06-14 12:21:18 +09:00
2019-10-07 09:38:54 -07:00
2018-11-09 10:23:13 -08:00
2018-06-14 12:21:18 +09:00
2019-06-19 17:09:06 +02:00
2020-11-27 10:19:12 +01:00
2018-03-09 11:22:43 +00:00
2014-08-01 17:30:35 +02:00
2020-03-05 16:47:35 +01:00
2018-02-11 14:34:03 -08:00
2019-07-30 10:50:30 -07:00
2019-07-30 10:50:30 -07:00
2019-07-30 10:50:30 -07:00
2020-05-07 13:20:05 +02:00
2019-01-22 11:17:20 -08:00
2020-11-17 10:31:31 +01:00
2019-01-03 18:57:57 -08:00
2019-07-08 21:48:15 -07:00
2019-05-27 09:36:28 -05:00
2015-09-03 12:07:59 +02:00
2020-10-17 15:04:36 -06:00
2020-08-21 09:29:09 +02:00
2019-05-30 11:29:20 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:20 -07:00
2017-08-30 00:57:27 +02:00
2020-03-31 08:51:45 -07:00
2019-01-22 11:17:20 -08:00
2020-05-22 09:12:22 +02:00
2019-05-21 10:50:45 +02:00
2020-01-22 10:16:18 -08:00
2020-09-07 22:24:27 +02: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
2020-08-12 10:57:59 -07:00
2019-05-29 13:20:30 -07:00
2020-11-19 13:26:38 +01:00
2020-09-01 09:50:35 +02:00
2014-01-22 20:19:02 +01:00
2014-05-24 00:07:01 +02:00
2020-02-15 12:44:03 -08:00
2020-05-07 11:55:47 +02:00