[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <2bc7564b5c902a0ebabd5ab652b12c1ffa4214eb.1242299014.git.ptesarik@suse.cz>
Date: Thu, 14 May 2009 15:06:40 +0200
From: Petr Tesarik <ptesarik@...e.cz>
To: linux-kernel@...r.kernel.org, linux-x86_64@...r.kernel.org,
mingo@...e.hu, andi@...stfloor.org
Cc: zwane@....linux.org.uk, roland@...hat.com,
Petr Tesarik <ptesarik@...e.cz>
Subject: [PATCH 2/4] x86: Cleanup vdso-layout.lds.S
Make the following changes:
- move linker-generated sections out of .data
- add all (even theoretically) possible rodata, data and text input
sections to their respective output sections
- discard .altinstructions and .altinstr_replacements
Since the .altinstructions section is currently not used anyway, this
is a pure cleanup.
Signed-off-by: Petr Tesarik <ptesarik@...e.cz>
---
arch/x86/vdso/vdso-layout.lds.S | 25 ++++++++++++++++++-------
1 files changed, 18 insertions(+), 7 deletions(-)
diff --git a/arch/x86/vdso/vdso-layout.lds.S b/arch/x86/vdso/vdso-layout.lds.S
index 634a2cf..aaa3026 100644
--- a/arch/x86/vdso/vdso-layout.lds.S
+++ b/arch/x86/vdso/vdso-layout.lds.S
@@ -21,29 +21,40 @@ SECTIONS
.eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
.eh_frame : { KEEP (*(.eh_frame)) } :text
+ /* Linker-generated sections */
.dynamic : { *(.dynamic) } :text :dynamic
+ .got : { *(.got) } :text
+ .got.plt : { *(.got.plt) }
+ .dynbss : { *(.dynbss) }
- .rodata : { *(.rodata*) } :text
+ .rodata : {
+ *(.rodata*)
+ *(.gnu.linkonce.r.*)
+ }
.data : {
*(.data*)
*(.sdata*)
- *(.got.plt) *(.got)
*(.gnu.linkonce.d.*)
*(.bss*)
- *(.dynbss*)
+ *(.sbss*)
*(.gnu.linkonce.b.*)
}
- .altinstructions : { *(.altinstructions) }
- .altinstr_replacement : { *(.altinstr_replacement) }
-
/*
* Align the actual code well away from the non-instruction data.
* This is the best thing for the I-cache.
*/
. = ALIGN(0x100);
- .text : { *(.text*) } :text =0x90909090
+ .text : {
+ *(.text*)
+ *(.gnu.linkonce.t.*)
+ } :text =0x90909090
+
+ /DISCARD/ : {
+ *(.altinstructions)
+ *(.altinstr_replacement)
+ }
}
/*
--
1.6.0.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists