aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorMasahiro Yamada <[email protected]>2023-06-01 21:09:58 +0900
committerMasahiro Yamada <[email protected]>2023-06-02 22:45:59 +0900
commitb1a9651d48b42f3eddf095123c09f93e4df23060 (patch)
tree43ca17aae923e268087200f2d627d8a5cf0fdc13 /scripts/generate_rust_analyzer.py
parent12ca2c67d742d390c0aa1f8c1cfc49469df55ddf (diff)
modpost: refactor find_fromsym() and find_tosym()
find_fromsym() and find_tosym() are similar - both of them iterate in the .symtab section and return the nearest symbol. The difference between them is that find_tosym() allows a negative distance, but the distance must be less than 20. Factor out the common part into find_nearest_sym(). Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions