Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932661AbWJIMts (ORCPT ); Mon, 9 Oct 2006 08:49:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932652AbWJIMtj (ORCPT ); Mon, 9 Oct 2006 08:49:39 -0400 Received: from mtaout01-winn.ispmail.ntl.com ([81.103.221.47]:53603 "EHLO mtaout01-winn.ispmail.ntl.com") by vger.kernel.org with ESMTP id S932651AbWJIMtg (ORCPT ); Mon, 9 Oct 2006 08:49:36 -0400 From: Catalin Marinas Subject: [PATCH 2.6.19-rc1 06/10] Add kmemleak support for ARM Date: Mon, 09 Oct 2006 13:49:32 +0100 To: linux-kernel@vger.kernel.org Message-Id: <20061009124931.2695.98931.stgit@localhost.localdomain> In-Reply-To: <20061009124813.2695.8123.stgit@localhost.localdomain> References: <20061009124813.2695.8123.stgit@localhost.localdomain> Content-Type: text/plain; charset=utf-8; format=fixed Content-Transfer-Encoding: 8bit User-Agent: StGIT/0.10 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1354 Lines: 48 From: Catalin Marinas This patch modifies the vmlinux.lds.S script and adds the backtrace support for ARM to be used with kmemleak. 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 3ca574e..59976b8 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@ -67,6 +67,11 @@ #endif __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) @@ -115,6 +120,7 @@ #endif .data : AT(__data_loc) { __data_start = .; /* address in memory */ + _sdata = .; /* * first, the init task union, aligned @@ -165,6 +171,7 @@ #endif __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/