Skip to content
Commit f34ea029 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

scripts/kallsyms: set relative_base more effectively



Currently, record_relative_base() iterates over the entire table to
find the minimum address, but it is not efficient because we sort
the table anyway.

After sort_symbol(), the table is sorted by address. (kallsyms parses
the 'nm -n' output, so the data is already sorted by address, but this
commit does not rely on it.)

Move record_relative_base() after sort_symbols(), and take the first
non-absolute symbol value.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 5e5c4fa7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment