Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755998AbYHGEzv (ORCPT ); Thu, 7 Aug 2008 00:55:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752541AbYHGEzm (ORCPT ); Thu, 7 Aug 2008 00:55:42 -0400 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.123]:37595 "EHLO cdptpa-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752104AbYHGEzl (ORCPT ); Thu, 7 Aug 2008 00:55:41 -0400 Date: Thu, 07 Aug 2008 00:55:58 -0400 Message-ID: <87fxphzan5.wl%ysato@users.sourceforge.jp> From: Yoshinori Sato To: Andrew Morton Cc: lkml Subject: [PATCH] kallsyms exclude local symbols User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.2 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1513 Lines: 60 h8300's nm output include '.Lfoo' local symbols. This is head of System.map 00000000 T __vector 00000100 T _interrupt_redirect_table 00000100 T _text 00000200 T __start 00000200 T __stext 0000024c t _exit 00000252 T __platform_gpio_table 0000025a t gpio_table 00000270 t .LFB1596 00000270 t .LM1 00000270 t .LM2 00000270 t .Ltext0 00000270 t _run_init_process 0000027a t .LM3 00000286 t .LFB1597 00000286 t .LFE1596 00000286 t .LM4 00000286 t .LM5 00000286 t _init_post 0000028a t .LM6 00000296 t .LM7 000002aa t .LM8 000002ba t .L199 000002ba t .LM9 000002c0 t .LM10 exclude local symbol patch. Signed-off-by: Yoshinori Sato --- scripts/kallsyms.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index ad2434b..a1652da 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -106,7 +106,7 @@ static int read_symbol(FILE *in, struct sym_entry *s) is_arm_mapping_symbol(sym)) return -1; /* exclude also MIPS ELF local symbols ($L123 instead of .L123) */ - else if (str[0] == '$') + else if (str[0] == '$' || str[0] == '.') return -1; /* exclude debugging symbols */ else if (stype == 'N') -- 1.5.6.3 -- Yoshinori Sato -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/