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)
commit8a69152be9a8c1f7a02c6b8410b35c68cb200f6d
treedb2e260b405d9f375efb06ba993a686f2e8be333
parente882e89bcf1d54da2e4388570325774c3e3078a9
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