Peter Zijlstra fb780761e7 recordmcount: Correct st_shndx handling
One should only use st_shndx when >SHN_UNDEF and <SHN_LORESERVE. When
SHN_XINDEX, then use .symtab_shndx. Otherwise use 0.

This handles the case: st_shndx >= SHN_LORESERVE && st_shndx != SHN_XINDEX.

Link: https://lore.kernel.org/lkml/20210607023839.26387-1-mark-pk.tsai@mediatek.com/
Link: https://lkml.kernel.org/r/20210616154126.2794-1-mark-pk.tsai@mediatek.com

Reported-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com>
Tested-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
[handle endianness of sym->st_shndx]
Signed-off-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2021-06-18 09:09:17 -04:00
..
2021-02-12 19:23:39 -06:00
2021-04-29 14:32:00 -07:00
2020-12-08 23:30:04 +09:00
2021-04-26 08:38:10 -07:00
2020-10-22 13:13:57 -07:00
2021-02-26 09:41:05 -08:00
2021-05-02 00:43:35 +09:00
2021-05-08 10:00:11 -07:00
2020-12-08 23:30:04 +09:00
2021-03-28 14:41:49 +02:00
2020-12-08 23:30:04 +09:00
2021-05-02 00:43:35 +09:00
2021-05-03 17:23:06 -06:00