Skip to content
Commit f404a58d authored by Aaron Plattner's avatar Aaron Plattner Committed by Josh Poimboeuf
Browse files

objtool: Remove max symbol name length limitation



If one of the symbols processed by read_symbols() happens to have a
.cold variant with a name longer than objtool's MAX_NAME_LEN limit, the
build fails.

Avoid this problem by just using strndup() to copy the parent function's
name, rather than strncpy()ing it onto the stack.

Signed-off-by: default avatarAaron Plattner <aplattner@nvidia.com>
Link: https://lore.kernel.org/r/41e94cfea1d9131b758dd637fecdeacd459d4584.1696355111.git.aplattner@nvidia.com


Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
parent e959c279
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment