xref: /netbsd-src/sys/arch/powerpc/conf/kern-mb.ldscript (revision ce93b3da5702ce1edf4d46f9fb716f53daf32f23)
1/* $NetBSD: kern-mb.ldscript,v 1.4 2015/08/24 08:13:07 uebayasi Exp $ */
2
3/*  ldscript for NetBSD/powerpc kernels and LKMs */
4OUTPUT_ARCH(powerpc)
5ENTRY(_start)
6/* Do we need any of these?
7   __DYNAMIC = 0;    */
8_DYNAMIC_LINK = 0;
9SECTIONS
10{
11  /*  Read-only sections, merged into text segment.  Assumes the
12      kernel Makefile sets the start address via -Ttext.  */
13  .text      :
14  {
15    _ftext = . ;
16    *(.text)
17    __stub_start = .;
18    *(.stub)
19    __stub_end = .;
20    __stub_pmap_start = .;
21    *(.stub.pmap)
22    __stub_pmap_end = .;
23    *(.gnu.warning)
24  } =0
25  _etext = .;
26  PROVIDE (etext = .);
27  .rodata    : { *(.rodata) *(.rodata.*) }
28  .reginfo : { *(.reginfo) }
29  . = ALIGN(0x100000);
30  .data    :
31  {
32    _fdata = . ;
33    *(.data)
34    CONSTRUCTORS
35  }
36  .data1			: { *(.data1) }
37  . = ALIGN(32);	/* COHERENCY UNIT */
38  .data.cacheline_aligned	: { *(.data.cacheline_aligned) }
39  . = ALIGN(32);	/* COHERENCY UNIT */
40  .data.read_mostly		: { *(.data.read_mostly) }
41  . = ALIGN(32);	/* COHERENCY UNIT */
42  _gp = ALIGN(16) + 0x7ff0;
43  .lit8 : { *(.lit8) }
44  .lit4 : { *(.lit4) }
45  .sdata     : { *(.sdata) }
46  _edata  =  .;
47  PROVIDE (edata = .);
48  __bss_start = .;
49  _fbss = .;
50  .sbss      : { *(.sbss) *(.scommon) }
51  .bss       :
52  {
53    *(.bss)
54    *(COMMON)
55  }
56  _end = . ;
57  PROVIDE (end = .);
58}
59