/* $NetBSD: kern.ldscript,v 1.5 2015/08/23 08:57:25 uebayasi Exp $ */ SECTIONS { . = 0xf0000020; /* 0x20 == sizeof(a.out header) */ /* Read-only sections, merged into text segment: */ .text : { *(.text) *(.text.*) *(.stub) *(.glue_7t) *(.glue_7) *(.rodata) *(.rodata.*) } =0 PROVIDE (__etext = .); PROVIDE (_etext = .); PROVIDE (etext = .); . = ALIGN(0x1000); .data : { __data_start = . ; *(.data) *(.data.*) *(.sdata) *(.sdata.*) } _edata = .; PROVIDE (edata = .); __bss_start = .; __bss_start__ = .; .bss : { *(.dynbss) *(.bss) *(.bss.*) *(COMMON) /* Align here to ensure that the .bss section occupies space up to _end. Align after .bss to ensure correct alignment even if the .bss section disappears because there are no input sections. */ . = ALIGN(32 / 8); } . = ALIGN(32 / 8); _end = .; _bss_end__ = . ; __bss_end__ = . ; __end__ = . ; PROVIDE (end = .); } |