From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756129AbcBPUaA (ORCPT ); Tue, 16 Feb 2016 15:30:00 -0500 Received: from mail-pf0-f180.google.com ([209.85.192.180]:33110 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756028AbcBPU37 (ORCPT ); Tue, 16 Feb 2016 15:29:59 -0500 Date: Tue, 16 Feb 2016 12:29:57 -0800 From: Kees Cook To: Russell King Cc: Ard Biesheuvel , Arnd Bergmann , Geert Uytterhoeven , Chris Brandt , Will Deacon , Nicolas Pitre , Marc Zyngier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: drop unused DEBUG_RODATA from XIP_KERNEL Message-ID: <20160216202957.GA1826@www.outflux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With CONFIG_DEBUG_RODATA not being sensible under XIP_KERNEL, remove it from the XIP linker script. Signed-off-by: Kees Cook --- Effectively the patch after Arnd's "ARM: mm: hide __start_rodata_section_aligned for non-debug builds" --- arch/arm/kernel/vmlinux-xip.lds.S | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/arch/arm/kernel/vmlinux-xip.lds.S b/arch/arm/kernel/vmlinux-xip.lds.S index 40bc4cadb959..cba1ec899a69 100644 --- a/arch/arm/kernel/vmlinux-xip.lds.S +++ b/arch/arm/kernel/vmlinux-xip.lds.S @@ -8,9 +8,6 @@ #include #include #include -#ifdef CONFIG_DEBUG_RODATA -#include -#endif #define PROC_INFO \ . = ALIGN(4); \ @@ -92,10 +89,6 @@ SECTIONS HEAD_TEXT } -#ifdef CONFIG_DEBUG_RODATA - . = ALIGN(1<