]> 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)
commitfe79c4eef77eed98175d1146a82c2a2046ae1d03
treedb2e260b405d9f375efb06ba993a686f2e8be333
parentc1c4c396fc3a2258899bfc4fed21d565510c3e4a
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