aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/boot/zImage.lds
diff options
context:
space:
mode:
authorOlaf Hering <olh@suse.de>2005-10-28 20:46:44 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-29 01:07:00 -0400
commit06cf26beffc54bb43aebbefa60f84e0dffde3141 (patch)
tree73461c0fba1d949ac46d140cdf76643f790de342 /arch/ppc64/boot/zImage.lds
parent83097c5d543894864a564cde6c27d4e523d67674 (diff)
[PATCH] ppc64 boot: cleanup linker script
Remove userland related stuff from ld.script, they are not required for zImage use wildcards for some sections. Signed-off-by: Olaf Hering <olh@suse.de> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Anton Blanchard <anton@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/boot/zImage.lds')
-rw-r--r--arch/ppc64/boot/zImage.lds59
1 files changed, 5 insertions, 54 deletions
diff --git a/arch/ppc64/boot/zImage.lds b/arch/ppc64/boot/zImage.lds
index 8fe5e7071f54..fb465a4d89b5 100644
--- a/arch/ppc64/boot/zImage.lds
+++ b/arch/ppc64/boot/zImage.lds
@@ -1,62 +1,19 @@
1OUTPUT_ARCH(powerpc:common) 1OUTPUT_ARCH(powerpc:common)
2SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
3/* Do we need any of these for elf?
4 __DYNAMIC = 0; */
5SECTIONS 2SECTIONS
6{ 3{
7 /* Read-only sections, merged into text segment: */
8 . = + SIZEOF_HEADERS;
9 .interp : { *(.interp) }
10 .hash : { *(.hash) }
11 .dynsym : { *(.dynsym) }
12 .dynstr : { *(.dynstr) }
13 .rel.text : { *(.rel.text) }
14 .rela.text : { *(.rela.text) }
15 .rel.data : { *(.rel.data) }
16 .rela.data : { *(.rela.data) }
17 .rel.rodata : { *(.rel.rodata) }
18 .rela.rodata : { *(.rela.rodata) }
19 .rel.got : { *(.rel.got) }
20 .rela.got : { *(.rela.got) }
21 .rel.ctors : { *(.rel.ctors) }
22 .rela.ctors : { *(.rela.ctors) }
23 .rel.dtors : { *(.rel.dtors) }
24 .rela.dtors : { *(.rela.dtors) }
25 .rel.bss : { *(.rel.bss) }
26 .rela.bss : { *(.rela.bss) }
27 .rel.plt : { *(.rel.plt) }
28 .rela.plt : { *(.rela.plt) }
29 .plt : { *(.plt) }
30 .text : 4 .text :
31 { 5 {
32 *(.text) 6 *(.text)
33 *(.fixup) 7 *(.fixup)
34 *(.got1)
35 } 8 }
36 . = ALIGN(4096);
37 _etext = .; 9 _etext = .;
38 PROVIDE (etext = .);
39 .rodata :
40 {
41 *(.rodata)
42 *(.rodata1)
43 }
44 .kstrtab : { *(.kstrtab) }
45 __vermagic : { *(__vermagic) }
46 .fini : { *(.fini) } =0
47 .ctors : { *(.ctors) }
48 .dtors : { *(.dtors) }
49 /* Read-write section, merged into data segment: */
50 . = ALIGN(4096); 10 . = ALIGN(4096);
51 .data : 11 .data :
52 { 12 {
53 *(.data) 13 *(.rodata*)
54 *(.data1) 14 *(.data*)
55 *(.sdata) 15 *(.sdata*)
56 *(.sdata2) 16 *(.got*)
57 *(.got.plt) *(.got)
58 *(.dynamic)
59 CONSTRUCTORS
60 } 17 }
61 18
62 . = ALIGN(4096); 19 . = ALIGN(4096);
@@ -71,20 +28,14 @@ SECTIONS
71 28
72 . = ALIGN(4096); 29 . = ALIGN(4096);
73 _edata = .; 30 _edata = .;
74 PROVIDE (edata = .);
75
76 .fixup : { *(.fixup) }
77 31
78 . = ALIGN(4096); 32 . = ALIGN(4096);
79 __bss_start = .; 33 __bss_start = .;
80 .bss : 34 .bss :
81 { 35 {
82 *(.sbss) *(.scommon) 36 *(.sbss)
83 *(.dynbss)
84 *(.bss) 37 *(.bss)
85 *(COMMON)
86 } 38 }
87 . = ALIGN(4096); 39 . = ALIGN(4096);
88 _end = . ; 40 _end = . ;
89 PROVIDE (end = .);
90} 41}