Skip to content
Commit 87bb368d authored by Kris Van Hees's avatar Kris Van Hees Committed by Masahiro Yamada
Browse files

kbuild: exclude .rodata.(cst|str)* when building ranges



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.

Fixes: 5f5e7344 ("kbuild: generate offset range data for builtin modules")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarKris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: default avatarJack Vogel <jack.vogel@oracle.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent eb47ee01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment