[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191123132727.30151-12-yamada.masahiro@socionext.com>
Date: Sat, 23 Nov 2019 22:27:22 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: linux-kbuild@...r.kernel.org
Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH 11/16] scripts/kallsyms: move more patterns to the ignored_prefixes array
Refactoring for shortening the code.
Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
---
scripts/kallsyms.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index 5553843631d4..63473924d4de 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -105,6 +105,8 @@ static bool is_ignored_symbol(const char *name, char type)
};
static const char * const ignored_prefixes[] = {
+ "$", /* local symbols for ARM, MIPS, etc. */
+ ".LASANPC", /* s390 kasan local symbols */
"__crc_", /* modversions */
"__efistub_", /* arm64 EFI stub namespace */
NULL
@@ -198,19 +200,9 @@ static int read_symbol(FILE *in, struct sym_entry *s)
}
else if (toupper(stype) == 'U')
return -1;
- /*
- * Ignore generated symbols such as:
- * - mapping symbols in ARM ELF files ($a, $t, and $d)
- * - MIPS ELF local symbols ($L123 instead of .L123)
- */
- else if (sym[0] == '$')
- return -1;
/* exclude debugging symbols */
else if (stype == 'N' || stype == 'n')
return -1;
- /* exclude s390 kasan local symbols */
- else if (!strncmp(sym, ".LASANPC", 8))
- return -1;
/* include the type field in the symbol name, so that it gets
* compressed together */
--
2.17.1
Powered by blists - more mailing lists