Commit 06cf26be authored by Olaf Hering's avatar Olaf Hering Committed by Paul Mackerras

[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: default avatarOlaf Hering <olh@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Anton Blanchard <anton@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 83097c5d
OUTPUT_ARCH(powerpc:common) OUTPUT_ARCH(powerpc:common)
SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
/* Do we need any of these for elf?
__DYNAMIC = 0; */
SECTIONS SECTIONS
{ {
/* Read-only sections, merged into text segment: */
. = + SIZEOF_HEADERS;
.interp : { *(.interp) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.rel.text : { *(.rel.text) }
.rela.text : { *(.rela.text) }
.rel.data : { *(.rel.data) }
.rela.data : { *(.rela.data) }
.rel.rodata : { *(.rel.rodata) }
.rela.rodata : { *(.rela.rodata) }
.rel.got : { *(.rel.got) }
.rela.got : { *(.rela.got) }
.rel.ctors : { *(.rel.ctors) }
.rela.ctors : { *(.rela.ctors) }
.rel.dtors : { *(.rel.dtors) }
.rela.dtors : { *(.rela.dtors) }
.rel.bss : { *(.rel.bss) }
.rela.bss : { *(.rela.bss) }
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
.plt : { *(.plt) }
.text : .text :
{ {
*(.text) *(.text)
*(.fixup) *(.fixup)
*(.got1)
} }
. = ALIGN(4096);
_etext = .; _etext = .;
PROVIDE (etext = .);
.rodata :
{
*(.rodata)
*(.rodata1)
}
.kstrtab : { *(.kstrtab) }
__vermagic : { *(__vermagic) }
.fini : { *(.fini) } =0
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
/* Read-write section, merged into data segment: */
. = ALIGN(4096); . = ALIGN(4096);
.data : .data :
{ {
*(.data) *(.rodata*)
*(.data1) *(.data*)
*(.sdata) *(.sdata*)
*(.sdata2) *(.got*)
*(.got.plt) *(.got)
*(.dynamic)
CONSTRUCTORS
} }
. = ALIGN(4096); . = ALIGN(4096);
...@@ -71,20 +28,14 @@ SECTIONS ...@@ -71,20 +28,14 @@ SECTIONS
. = ALIGN(4096); . = ALIGN(4096);
_edata = .; _edata = .;
PROVIDE (edata = .);
.fixup : { *(.fixup) }
. = ALIGN(4096); . = ALIGN(4096);
__bss_start = .; __bss_start = .;
.bss : .bss :
{ {
*(.sbss) *(.scommon) *(.sbss)
*(.dynbss)
*(.bss) *(.bss)
*(COMMON)
} }
. = ALIGN(4096); . = ALIGN(4096);
_end = . ; _end = . ;
PROVIDE (end = .);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment