Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765129AbZFLN2Y (ORCPT ); Fri, 12 Jun 2009 09:28:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762662AbZFLNZr (ORCPT ); Fri, 12 Jun 2009 09:25:47 -0400 Received: from cantor2.suse.de ([195.135.220.15]:47955 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759714AbZFLNZm (ORCPT ); Fri, 12 Jun 2009 09:25:42 -0400 From: Petr Tesarik To: LKML Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andi Kleen , Roland McGrath , Petr Tesarik Subject: [PATCH 1/8] x86: Adjust the coding style of vdso-layout.lds.S Date: Fri, 12 Jun 2009 15:25:35 +0200 Message-Id: <7defd050ad8b4f8de14cad095f298469261661ba.1244812577.git.ptesarik@suse.cz> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2680 Lines: 121 The style we try to introduce for .lds files in arch/$ARCH/kernel/vmlinux.lds.S is much more C-like. Use the same style in the vDSO linker script to get a consistent style in linker scripts. Credits to Sam Ravnborg for suggesting this change. Signed-off-by: Petr Tesarik --- arch/x86/vdso/vdso-layout.lds.S | 76 +++++++++++++++++++++++++++------------ 1 files changed, 53 insertions(+), 23 deletions(-) diff --git a/arch/x86/vdso/vdso-layout.lds.S b/arch/x86/vdso/vdso-layout.lds.S index 634a2cf..917df03 100644 --- a/arch/x86/vdso/vdso-layout.lds.S +++ b/arch/x86/vdso/vdso-layout.lds.S @@ -8,34 +8,62 @@ SECTIONS { . = VDSO_PRELINK + SIZEOF_HEADERS; - .hash : { *(.hash) } :text - .gnu.hash : { *(.gnu.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .gnu.version : { *(.gnu.version) } - .gnu.version_d : { *(.gnu.version_d) } - .gnu.version_r : { *(.gnu.version_r) } + .hash : { + *(.hash) + } :text + .gnu.hash : { + *(.gnu.hash) + } + .dynsym : { + *(.dynsym) + } + .dynstr : { + *(.dynstr) + } + .gnu.version : { + *(.gnu.version) + } + .gnu.version_d : { + *(.gnu.version_d) + } + .gnu.version_r : { + *(.gnu.version_r) + } - .note : { *(.note.*) } :text :note + .note : { + *(.note.*) + } :text :note - .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr - .eh_frame : { KEEP (*(.eh_frame)) } :text + .eh_frame_hdr : { + *(.eh_frame_hdr) + } :text :eh_frame_hdr + .eh_frame : { + KEEP (*(.eh_frame)) + } :text - .dynamic : { *(.dynamic) } :text :dynamic + .dynamic : { + *(.dynamic) + } :text :dynamic - .rodata : { *(.rodata*) } :text - .data : { - *(.data*) - *(.sdata*) - *(.got.plt) *(.got) - *(.gnu.linkonce.d.*) - *(.bss*) - *(.dynbss*) - *(.gnu.linkonce.b.*) + .rodata : { + *(.rodata*) + } :text + .data : { + *(.data*) + *(.sdata*) + *(.got.plt) *(.got) + *(.gnu.linkonce.d.*) + *(.bss*) + *(.dynbss*) + *(.gnu.linkonce.b.*) } - .altinstructions : { *(.altinstructions) } - .altinstr_replacement : { *(.altinstr_replacement) } + .altinstructions : { + *(.altinstructions) + } + .altinstr_replacement : { + *(.altinstr_replacement) + } /* * Align the actual code well away from the non-instruction data. @@ -43,7 +71,9 @@ SECTIONS */ . = ALIGN(0x100); - .text : { *(.text*) } :text =0x90909090 + .text : { + *(.text*) + } :text =0x90909090 } /* -- 1.6.0.2 -- 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/