Re: [PATCH] kbuild: exclude .rodata.(cst|str)* when building ranges
From: Masahiro Yamada
Date: Tue Mar 11 2025 - 05:18:01 EST
On Thu, Mar 6, 2025 at 4:28 AM Kris Van Hees <kris.van.hees@xxxxxxxxxx> wrote:
>
> The .rodata.(cst|str)* sections are often resized during the final
> linking and since these sections do not cover actual symbols there is
> no need to include them in the modules.builtin.ranges data.
>
> When these sections were included in processing and resizing occurred,
> modules were reported with ranges that extended beyond their true end,
> causing subsequent symbols (in address order) to be associated with
> the wrong module.
>
> Signed-off-by: Kris Van Hees <kris.van.hees@xxxxxxxxxx>
> Reviewed-by: Jack Vogel <jack.vogel@xxxxxxxxxx>
> ---
Applied with the following tag:
Fixes: 5f5e7344322f ("kbuild: generate offset range data for builtin modules")
Please let me know if this is wrong.
--
Best Regards
Masahiro Yamada