Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261628AbVASICK (ORCPT ); Wed, 19 Jan 2005 03:02:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261654AbVASIBO (ORCPT ); Wed, 19 Jan 2005 03:01:14 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:53183 "EHLO ebiederm.dsl.xmission.com") by vger.kernel.org with ESMTP id S261632AbVASHdl (ORCPT ); Wed, 19 Jan 2005 02:33:41 -0500 From: "Eric W. Biederman" To: Andrew Morton Cc: , Subject: [PATCH 8/29] vmlinux-fix-physical-addrs Date: Wed, 19 Jan 2005 0:31:37 -0700 Message-ID: X-Mailer: patch-bomb.pl@ebiederm.dsl.xmission.com In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1556 Lines: 35 In vmlinux.lds.h the code is carefull to define every section so vmlinux properly reports the correct physical load address of code, as well as it's virtual address. The new SECURITY_INIT definition fails to follow that convention and and causes incorrect physical address to appear in the vmlinux if there are any security initcalls. This patch updates the SECURITY_INIT to follow the convention in the rest of the file. Signed-off-by: Eric Biederman --- vmlinux.lds.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -uNr linux-2.6.11-rc1-mm1-nokexec-x86_64-apic-virtwire-on-shutdown/include/asm-generic/vmlinux.lds.h linux-2.6.11-rc1-mm1-nokexec-vmlinux-fix-physical-addrs/include/asm-generic/vmlinux.lds.h --- linux-2.6.11-rc1-mm1-nokexec-x86_64-apic-virtwire-on-shutdown/include/asm-generic/vmlinux.lds.h Fri Jan 7 12:54:13 2005 +++ linux-2.6.11-rc1-mm1-nokexec-vmlinux-fix-physical-addrs/include/asm-generic/vmlinux.lds.h Tue Jan 18 22:45:34 2005 @@ -73,7 +73,7 @@ } #define SECURITY_INIT \ - .security_initcall.init : { \ + .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET) { \ VMLINUX_SYMBOL(__security_initcall_start) = .; \ *(.security_initcall.init) \ VMLINUX_SYMBOL(__security_initcall_end) = .; \ - 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/