]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: traverse unresolved symbols in order
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 1 May 2022 08:40:12 +0000 (17:40 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 7 May 2022 18:17:00 +0000 (03:17 +0900)
commitd3d8336a63d0be1f4a11c3727b50fd3687124e69
treedb2e260b405d9f375efb06ba993a686f2e8be333
parent5e480fbd312f857144a93461b75dcdb368155e88
modpost: traverse unresolved symbols in order

Currently, modpost manages unresolved in a singly linked list; it adds
a new node to the head, and traverses the list from new to old.

Use a doubly linked list to keep the order in the symbol table in the
ELF file.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/mod/modpost.c
scripts/mod/modpost.h