modpost: file2alias: go back to simple devtable lookup
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 22 Nov 2018 04:28:41 +0000 (13:28 +0900)
committerDanny Wood <danwood76@gmail.com>
Thu, 28 Jan 2021 10:28:35 +0000 (10:28 +0000)
commit44565e2adcf5789816b581577257a1b00fd404cb
tree9cd10b1959c79cbd562d247854f887c6242cbe69
parente970ac1f8806e7577bf5214400842452eda0c858
modpost: file2alias: go back to simple devtable lookup

[ Upstream commit ec91e78d378cc5d4b43805a1227d8e04e5dfa17d ]

Commit e49ce14150c6 ("modpost: use linker section to generate table.")
was not so cool as we had expected first; it ended up with ugly section
hacks when commit dd2a3acaecd7 ("mod/file2alias: make modpost compile
on darwin again") came in.

Given a certain degree of unknowledge about the link stage of host
programs, I really want to see simple, stupid table lookup so that
this works in the same way regardless of the underlying executable
format.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Change-Id: If4290e58a2c34a7f69e2aa8e9ec0b07f15792d21
scripts/mod/file2alias.c