Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161087AbWLPPsK (ORCPT ); Sat, 16 Dec 2006 10:48:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161085AbWLPPrn (ORCPT ); Sat, 16 Dec 2006 10:47:43 -0500 Received: from queue01-winn.ispmail.ntl.com ([81.103.221.55]:5281 "EHLO queue01-winn.ispmail.ntl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161082AbWLPPrh (ORCPT ); Sat, 16 Dec 2006 10:47:37 -0500 From: Catalin Marinas Subject: [PATCH 2.6.20-rc1 06/10] Add kmemleak support for ARM To: linux-kernel@vger.kernel.org Date: Sat, 16 Dec 2006 15:35:19 +0000 Message-ID: <20061216153518.18200.65958.stgit@localhost.localdomain> In-Reply-To: <20061216153346.18200.51408.stgit@localhost.localdomain> References: <20061216153346.18200.51408.stgit@localhost.localdomain> User-Agent: StGIT/0.11 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 Content-Length: 1284 Lines: 46 This patch adds the kmemleak-related entries to the vmlinux.lds.S linker script. Signed-off-by: Catalin Marinas --- arch/arm/kernel/vmlinux.lds.S | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index a8fa75e..7ec22ad 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@ -61,6 +61,11 @@ SECTIONS __per_cpu_start = .; *(.data.percpu) __per_cpu_end = .; +#ifdef CONFIG_DEBUG_MEMLEAK + __memleak_offsets_start = .; + *(.init.memleak_offsets) + __memleak_offsets_end = .; +#endif #ifndef CONFIG_XIP_KERNEL __init_begin = _stext; *(.init.data) @@ -109,6 +114,7 @@ SECTIONS .data : AT(__data_loc) { __data_start = .; /* address in memory */ + _sdata = .; /* * first, the init task union, aligned @@ -159,6 +165,7 @@ SECTIONS __bss_start = .; /* BSS */ *(.bss) *(COMMON) + __bss_stop = .; _end = .; } /* Stabs debugging sections. */ - 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/