1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 #ifndef _LINUX_MODULE_SYMBOL_H 3 #define _LINUX_MODULE_SYMBOL_H 4 5 /* This ignores the intensely annoying "mapping symbols" found in ELF files. */ is_mapping_symbol(const char * str)6static inline bool is_mapping_symbol(const char *str) 7 { 8 if (!strncmp("__kvm_nvhe_", str, 11)) 9 str += 11; 10 11 if (str[0] == '.' && str[1] == 'L') 12 return true; 13 if (str[0] == 'L' && str[1] == '0') 14 return true; 15 return str[0] == '$'; 16 } 17 18 #endif /* _LINUX_MODULE_SYMBOL_H */ 19