Joe Lawrence
4afc71bba8
module.lds,codetag: force 0 sh_addr for sections
...
Commit 1ba9f89794 ("vmlinux.lds: Unify TEXT_MAIN, DATA_MAIN, and
related macros") added .text and made .data, .bss, and .rodata sections
unconditional in the module linker script, but without an explicit
address like the other sections in the same file.
When linking modules with ld.bfd -r, sections defined without an address
inherit the location counter, resulting in non-zero sh_addr values in
the .ko. Relocatable objects are expected to have sh_addr=0 for these
sections and these non-zero addresses confuse elfutils and have been
reported to cause segmentation faults in SystemTap [1].
Add the 0 address specifier to all sections in module.lds, including the
.codetag.* sections via MOD_SEPARATE_CODETAG_SECTIONS macro.
Link: https://sourceware.org/bugzilla/show_bug.cgi?id=33958
Fixes: 1ba9f89794 ("vmlinux.lds: Unify TEXT_MAIN, DATA_MAIN, and related macros")
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com >
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com >
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org >
Signed-off-by: Sami Tolvanen <samitolvanen@google.com >
2026-03-17 23:18:02 +00:00
..
2026-01-09 19:01:42 +08:00
2025-03-15 21:22:52 +09:00
2025-05-08 09:42:06 -07:00
2025-12-27 20:48:01 +01:00
2026-02-09 10:48:20 -08:00
2026-01-12 11:07:49 -08:00
2026-02-03 20:58:12 -06:00
2026-01-29 17:12:13 -07:00
2025-09-23 13:59:39 -07:00
2026-02-12 15:45:57 -08:00
2025-12-22 16:35:54 +00:00
2026-02-26 11:53:05 -07:00
2024-10-07 02:12:27 +09:00
2024-11-19 13:57:03 -08:00
2026-02-12 11:28:27 -05:00
2026-02-21 17:09:51 -08:00
2026-02-12 11:28:27 -05:00
2026-02-26 14:49:34 -07:00
2025-08-18 10:45:43 -06:00
2025-03-20 07:02:21 -04:00
2025-10-29 08:46:05 -04:00
2023-01-26 12:41:38 +09:00
2023-04-21 08:58:00 -07:00
2026-01-31 16:16:06 -08:00
2025-10-04 09:05:23 -07:00
2024-07-16 01:08:37 +09:00
2026-02-13 14:23:06 -05:00
2023-04-24 10:18:32 -07:00
2026-01-14 14:13:41 +01:00
2023-03-16 22:46:12 +09:00
2025-07-23 11:57:05 +02:00
2023-12-29 22:25:20 +09:00
2026-01-18 10:32:03 +01:00
2023-01-26 12:43:33 +09:00
2026-02-13 12:02:18 -08:00
2023-12-29 12:22:28 -08:00
2023-03-23 17:18:32 -07:00
2026-02-21 17:22:30 +01:00
2025-03-15 21:22:42 +09:00
2025-06-17 10:44:07 +02:00
2026-01-22 15:30:48 -07:00
2026-01-05 16:43:36 +01:00
2025-11-09 21:19:45 -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
2025-10-24 16:43:14 -04:00
2025-10-24 16:43:14 -04:00
2025-03-16 22:30:46 -07:00
2025-08-28 15:25:48 -07:00
2025-10-14 14:45:20 -07:00
2024-12-11 20:13:00 -08:00
2026-01-21 12:36:32 -08:00
2025-03-10 09:29:08 -07:00
2025-03-15 21:22:52 +09:00
2026-02-10 11:53:01 -08:00
2025-08-31 23:34:34 +02:00
2025-03-16 22:30:49 -07:00
2024-09-01 17:59:01 -07:00
2025-04-25 15:54:24 +02:00
2023-12-29 22:25:20 +09:00
2024-12-10 12:04:19 +00:00
2026-01-30 16:46:17 +01:00
2024-07-20 13:34:54 +09:00
2025-03-07 19:58:05 -08:00
2025-11-18 09:22:40 -07:00
2026-01-22 15:58:22 -07:00
2024-11-27 09:38:27 +09:00
2026-02-03 15:29:17 -07:00
2026-01-20 15:57:06 -07:00
2024-07-15 03:13:32 +09:00
2024-02-29 13:38:03 -08:00
2026-02-11 13:40:35 -08:00
2024-09-01 20:43:28 -07:00
2026-02-13 14:24:01 -05:00
2025-10-24 16:43:14 -04:00
2024-07-18 10:01:55 -07:00
2024-11-27 09:38:27 +09:00
2025-12-19 10:55:40 -08:00
2026-03-07 23:06:17 +01:00
2025-03-04 09:40:13 -08:00
2024-11-28 08:10:23 +09:00
2025-05-31 08:16:52 -07:00
2026-01-05 16:43:33 +01: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
2026-02-03 20:58:12 -06:00
2025-07-21 21:40:57 -07:00
2024-11-28 08:11:55 +09:00
2025-08-27 22:45:43 -07:00
2025-06-02 16:00:26 -07:00
2025-07-29 17:17:46 -07:00
2026-02-11 13:40:35 -08:00
2026-01-21 12:36:32 -08:00
2025-11-08 12:17:58 +01:00
2025-01-11 02:36:32 +09:00
2025-12-19 14:58:11 -07:00
2024-11-27 09:38:27 +09:00
2025-05-29 08:10:01 -07:00
2023-11-01 23:26:01 +09:00
2024-05-21 12:09:36 -07:00
2026-02-10 11:26:21 -08:00
2025-11-21 10:04:10 +01:00
2026-01-14 14:22:33 -07:00
2025-08-28 16:58:43 -07:00
2025-08-26 12:00:17 -07:00
2025-09-24 09:10:45 -07:00
2024-09-07 17:24:08 +09:00
2026-03-17 23:18:02 +00:00
2022-12-14 15:42:40 +09:00
2024-12-03 08:22:25 -08:00
2023-04-14 16:08:28 +02:00
2023-06-16 17:17:42 +02:00
2023-12-03 18:51:48 +09:00
2025-07-22 20:15:56 -04: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
2024-11-12 21:26:54 +01:00
2025-01-10 00:17:00 +01:00
2024-10-28 00:27:16 +01:00
2024-09-05 22:44:18 +02:00
2025-05-23 00:12:14 +02:00
2026-02-10 11:53:01 -08:00
2024-11-28 08:11:56 +09:00
2025-03-15 21:19:44 +09:00
2026-02-10 09:49:18 -08:00
2025-10-24 16:43:14 -04:00
2026-01-11 06:09:11 -10:00
2025-08-02 12:01:40 -07:00
2024-09-20 19:49:52 +03:00
2024-09-10 13:56:37 +09:00
2026-01-22 11:11:17 +01:00
2024-06-28 15:23:38 +02:00
2026-01-05 16:43:37 +01:00
2023-04-17 11:23:06 +09:00
2026-01-23 13:34:45 -05:00
2024-04-23 00:09:41 +09:00
2025-06-09 14:53:16 -06:00
2024-09-20 09:21:52 +09:00
2024-09-01 20:43:27 -07:00