Re: [PATCH] kbuild: exclude .rodata.(cst|str)* when building ranges

From: Steven Rostedt
Date: Fri Mar 07 2025 - 11:14:16 EST


On Wed, 5 Mar 2025 14:27:58 -0500
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.

If that's the case, shouldn't this be considered a fix, and include a fixes
tag as well as Cc stable?

-- Steve


>
> Signed-off-by: Kris Van Hees <kris.van.hees@xxxxxxxxxx>
> Reviewed-by: Jack Vogel <jack.vogel@xxxxxxxxxx>
> ---