Ard Biesheuvel
71d815bf5d
kbuild: Strip runtime const RELA sections correctly
...
Due to the fact that runtime const ELF sections are named without a
leading period or double underscore, the RSTRIP logic that removes the
static RELA sections from vmlinux fails to identify them. This results
in a situation like below, where some sections that were supposed to get
removed are left behind.
[Nr] Name Type Address Off Size ES Flg Lk Inf Al
[58] runtime_shift_d_hash_shift PROGBITS ffffffff83500f50 2900f50 000014 00 A 0 0 1
[59] .relaruntime_shift_d_hash_shift RELA 0000000000000000 55b6f00 000078 18 I 70 58 8
[60] runtime_ptr_dentry_hashtable PROGBITS ffffffff83500f68 2900f68 000014 00 A 0 0 1
[61] .relaruntime_ptr_dentry_hashtable RELA 0000000000000000 55b6f78 000078 18 I 70 60 8
[62] runtime_ptr_USER_PTR_MAX PROGBITS ffffffff83500f80 2900f80 000238 00 A 0 0 1
[63] .relaruntime_ptr_USER_PTR_MAX RELA 0000000000000000 55b6ff0 000d50 18 I 70 62 8
So tweak the match expression to strip all sections starting with .rel.
While at it, consolidate the logic used by RISC-V, s390 and x86 into a
single shared Makefile library command.
Link: https://lore.kernel.org/all/CAHk-=wjk3ynjomNvFN8jf9A1k=qSc=JFF591W00uXj-qqNUxPQ@mail.gmail.com/
Signed-off-by: Ard Biesheuvel <ardb@kernel.org >
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com >
Tested-by: Charlie Jenkins <charlie@rivosinc.com >
Tested-by: Alexander Gordeev <agordeev@linux.ibm.com >
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org >
2025-02-01 04:28:05 +09:00
..
2024-06-05 15:52:34 +02:00
2024-09-01 20:34:49 +09:00
2024-02-15 06:57:19 +09:00
2024-12-03 08:22:25 -08:00
2024-09-05 10:17:03 -05:00
2023-11-01 23:24:56 +09:00
2024-08-05 14:34:23 -07:00
2024-11-14 22:51:14 -08:00
2025-01-11 01:25:26 +09:00
2025-01-27 07:44:16 +09:00
2024-10-07 02:12:27 +09:00
2024-11-19 13:57:03 -08:00
2025-01-30 08:43:12 +09:00
2025-01-11 02:36:32 +09:00
2025-01-10 23:01:22 +09:00
2024-11-21 09:50:18 -08:00
2023-02-18 14:34:09 -05:00
2023-07-19 09:32:53 -06:00
2023-01-26 12:41:38 +09:00
2023-04-21 08:58:00 -07:00
2023-08-21 13:46:25 -07:00
2024-10-03 17:47:53 -07:00
2024-07-16 01:08:37 +09:00
2023-04-24 10:18:32 -07:00
2021-09-08 11:50:28 -07:00
2023-03-16 22:46:12 +09:00
2024-02-23 12:13:09 +01:00
2023-12-29 22:25:20 +09:00
2024-05-02 10:14:52 -06:00
2021-08-10 09:13:25 +09:00
2023-01-26 12:43:33 +09:00
2024-11-25 16:09:48 -08:00
2023-12-29 12:22:28 -08:00
2023-03-23 17:18:32 -07:00
2024-07-29 15:34:22 -06:00
2021-08-05 20:55:39 +09:00
2024-11-28 08:10:23 +09:00
2021-01-04 10:38:11 +09:00
2024-10-09 13:39:11 +02:00
2024-11-05 17:12:32 -08:00
2023-12-29 12:22:25 -08:00
2024-11-27 09:38:27 +09:00
2023-01-26 12:43:33 +09:00
2021-10-26 09:42:29 -06:00
2022-08-29 13:58:47 +09:00
2024-10-17 15:16:04 -07:00
2024-07-29 03:47:00 +09:00
2024-07-29 03:47:00 +09:00
2022-05-08 01:33:07 -07:00
2024-09-20 09:21:43 +09:00
2021-01-14 08:21:09 -08:00
2024-10-15 23:10:32 +02:00
2024-09-16 18:04:37 +02:00
2024-01-03 14:02:17 -07:00
2022-06-30 12:22:17 -06:00
2024-08-26 16:10:12 -06:00
2024-09-01 17:59:01 -07:00
2023-12-29 22:25:20 +09:00
2024-12-10 12:04:19 +00:00
2024-05-07 08:55:23 +10:00
2024-07-20 13:34:54 +09:00
2023-01-16 20:15:20 +09:00
2024-09-20 09:21:52 +09:00
2024-11-27 09:38:27 +09:00
2024-10-13 22:22:28 +02:00
2024-12-11 09:15:26 -07:00
2024-07-15 03:13:32 +09:00
2024-02-29 13:38:03 -08:00
2024-11-30 13:41:50 -08:00
2024-09-01 20:43:28 -07:00
2024-07-16 01:08:37 +09:00
2025-01-11 01:25:26 +09:00
2024-07-18 10:01:55 -07:00
2024-11-27 09:38:27 +09:00
2024-11-11 20:00:21 -08:00
2025-01-11 01:25:26 +09:00
2024-11-16 09:52:56 +01:00
2024-11-28 08:10:23 +09:00
2024-11-28 08:10:23 +09:00
2024-04-02 17:41:22 +02:00
2025-01-10 23:01:21 +09:00
2024-06-26 00:18:57 +09:00
2024-09-30 20:42:52 +09:00
2024-05-19 14:36:16 -07:00
2022-08-16 12:25:53 -07:00
2021-03-15 19:20:48 +09:00
2024-11-28 08:11:55 +09:00
2024-09-16 18:04:37 +02:00
2021-12-09 16:42:27 -08:00
2022-10-03 14:03:19 -07:00
2025-02-01 04:28:05 +09:00
2024-11-28 08:11:55 +09:00
2025-01-18 08:52:09 +09:00
2025-01-11 02:36:32 +09:00
2024-10-31 21:40:46 +09:00
2024-11-27 09:38:27 +09:00
2022-05-08 01:33:07 -07:00
2024-02-20 20:44:49 -08:00
2023-11-01 23:26:01 +09:00
2024-05-21 12:09:36 -07:00
2024-11-30 13:41:50 -08:00
2024-09-20 09:21:43 +09:00
2024-05-05 20:17:25 +02:00
2023-01-22 23:43:33 +09:00
2022-09-29 04:40:15 +09:00
2024-12-28 23:23:52 +09:00
2024-09-07 17:24:08 +09:00
2024-11-27 10:20:50 -08:00
2022-12-14 15:42:40 +09:00
2024-12-03 08:22:25 -08:00
2022-06-05 06:20:57 +09:00
2023-04-14 16:08:28 +02:00
2023-06-16 17:17:42 +02:00
2022-02-02 11:19:33 +01:00
2022-05-11 21:46:38 +09:00
2023-12-03 18:51:48 +09:00
2021-06-18 09:09:17 -04:00
2024-02-22 15:38:54 -08:00
2023-04-19 07:46:31 -07:00
2024-10-03 16:07:51 -04:00
2024-07-10 10:28:52 +02:00
2024-11-12 21:26:54 +01:00
2022-09-28 09:02:06 +02:00
2024-11-12 21:26:54 +01:00
2024-11-12 21:26:54 +01:00
2024-10-28 00:27:16 +01:00
2024-09-05 22:44:18 +02:00
2023-07-19 09:32:53 -06:00
2023-07-19 09:32:53 -06:00
2024-11-28 08:11:56 +09:00
2023-10-18 14:43:23 -07:00
2024-09-20 19:52:48 +03:00
2022-12-14 08:36:11 +08:00
2024-12-30 17:59:11 -08:00
2022-06-01 09:32:45 -06:00
2024-05-04 19:00:54 +02:00
2022-05-18 15:35:42 +02:00
2024-11-05 17:12:32 -08:00
2024-09-05 14:32:36 -06:00
2020-12-08 23:30:04 +09:00
2024-09-20 19:49:52 +03:00
2024-09-10 13:56:37 +09:00
2024-11-06 12:59:44 -05:00
2021-07-09 04:00:39 +09:00
2021-08-10 09:13:25 +09:00
2024-06-28 15:23:38 +02:00
2024-11-29 11:58:27 -08:00
2023-04-17 11:23:06 +09:00
2024-04-23 00:09:41 +09:00
2021-05-03 17:23:06 -06:00
2024-09-20 09:21:52 +09:00
2021-08-10 09:13:25 +09:00
2024-09-01 20:43:27 -07:00