]> git.baikalelectronics.ru Git - kernel.git/commit
scripts: fix faddr2line to work on last symbol
authorNeilBrown <neilb@suse.com>
Thu, 12 Oct 2017 03:22:04 +0000 (14:22 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Oct 2017 19:26:52 +0000 (12:26 -0700)
commit43b08173f603f5c0684ea91d3110e4bf699ccb1f
tree9cbb926764c55f857ea6a367c96514a53d4b8897
parent169d2cbe56b8b862d4f5a30a6b53dcc86cf34ee5
scripts: fix faddr2line to work on last symbol

If faddr2line is given a function name which is the last one listed by
"nm -n", it will fail because it never finds the next symbol.

So teach the awk script to catch that possibility, and use 'size' to
provide the end point of the last function.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/faddr2line