Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754724AbYLSSQ6 (ORCPT ); Fri, 19 Dec 2008 13:16:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754451AbYLSSNu (ORCPT ); Fri, 19 Dec 2008 13:13:50 -0500 Received: from cam-admin0.cambridge.arm.com ([193.131.176.58]:50390 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754407AbYLSSNt (ORCPT ); Fri, 19 Dec 2008 13:13:49 -0500 Subject: [PATCH 09/14] x86: Provide _sdata in the vmlinux_*.lds.S files To: linux-kernel@vger.kernel.org From: Catalin Marinas Date: Fri, 19 Dec 2008 18:13:46 +0000 Message-ID: <20081219181346.7778.73550.stgit@pc1117.cambridge.arm.com> In-Reply-To: <20081219181255.7778.52219.stgit@pc1117.cambridge.arm.com> References: <20081219181255.7778.52219.stgit@pc1117.cambridge.arm.com> User-Agent: StGit/0.14.3.292.gb975 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Dec 2008 18:13:47.0797 (UTC) FILETIME=[897F9C50:01C96205] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1458 Lines: 41 _sdata is a common symbol defined by many architectures and made available to the kernel via asm-generic/sections.h. Kmemleak uses this symbol when scanning the data sections. Signed-off-by: Catalin Marinas Cc: Ingo Molnar --- arch/x86/kernel/vmlinux_32.lds.S | 1 + arch/x86/kernel/vmlinux_64.lds.S | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/vmlinux_32.lds.S b/arch/x86/kernel/vmlinux_32.lds.S index a9b8560..b5d2b49 100644 --- a/arch/x86/kernel/vmlinux_32.lds.S +++ b/arch/x86/kernel/vmlinux_32.lds.S @@ -62,6 +62,7 @@ SECTIONS /* writeable */ . = ALIGN(PAGE_SIZE); + _sdata = .; /* Start of data section */ .data : AT(ADDR(.data) - LOAD_OFFSET) { /* Data */ DATA_DATA CONSTRUCTORS diff --git a/arch/x86/kernel/vmlinux_64.lds.S b/arch/x86/kernel/vmlinux_64.lds.S index 46e0544..8ad376c 100644 --- a/arch/x86/kernel/vmlinux_64.lds.S +++ b/arch/x86/kernel/vmlinux_64.lds.S @@ -52,6 +52,7 @@ SECTIONS RODATA . = ALIGN(PAGE_SIZE); /* Align data segment to page size boundary */ + _sdata = .; /* Start of data section */ /* Data */ .data : AT(ADDR(.data) - LOAD_OFFSET) { DATA_DATA -- 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/