From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757571AbXKFVsj (ORCPT ); Tue, 6 Nov 2007 16:48:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756051AbXKFVsY (ORCPT ); Tue, 6 Nov 2007 16:48:24 -0500 Received: from mx1.redhat.com ([66.187.233.31]:35618 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755969AbXKFVsX (ORCPT ); Tue, 6 Nov 2007 16:48:23 -0500 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Directors: Michael Cunningham (USA), Charlie Peters (USA) and David Owens (Ireland) From: David Howells Subject: [PATCH] FRV: Fix the extern declaration of kallsyms_num_syms To: torvalds@osdl.org, akpm@osdl.org, jdi@l4x.org Cc: linux-kernel@vger.kernel.org, dhowells@redhat.com Date: Tue, 06 Nov 2007 21:48:20 +0000 Message-ID: <20071106214820.3854.17402.stgit@warthog.procyon.org.uk> User-Agent: StGIT/0.13 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org From: David Howells Fix the extern declaration of kallsyms_num_syms to indicate that the symbol does not reside in the small-data storage space, and so may not be accessed relative to the small data base register. Signed-off-by: David Howells --- kernel/kallsyms.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index 474219a..fa84b83 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c @@ -32,7 +32,8 @@ /* These will be re-linked against their real values during the second link stage */ extern const unsigned long kallsyms_addresses[] __attribute__((weak)); -extern const unsigned long kallsyms_num_syms __attribute__((weak)); +extern const unsigned long kallsyms_num_syms +__nongpreldata __attribute__((weak)); extern const u8 kallsyms_names[] __attribute__((weak)); extern const u8 kallsyms_token_table[] __attribute__((weak));