1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0-or-later 3 4 # Get a list of all the relocations, remove fr 5 # that are known to be legitimate and return t 6 # script that will look for suspicious relocat 7 8 objdump="$1" 9 nm="$2" 10 vmlinux="$3" 11 12 # Remove from the possible bad relocations tho 13 # weak symbol which will result in an absolut 14 # Weak unresolved symbols are of that form in 15 # " w _binary__btf_vmlinux_bi 16 undef_weak_symbols=$($nm "$vmlinux" | awk '$1 17 18 $objdump -R "$vmlinux" | 19 grep -E '\<R_' | 20 ([ "$undef_weak_symbols" ] && grep -F
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.