2002-11-28 08:56:51 +03:00
|
|
|
/* $NetBSD: ld.script,v 1.3 2002/11/28 05:56:51 chs Exp $ */
|
2002-06-06 23:48:01 +04:00
|
|
|
|
|
|
|
/* $OpenBSD: ld.script,v 1.7 1999/12/17 07:02:38 mickey Exp $ */
|
|
|
|
|
|
|
|
OUTPUT_FORMAT("elf32-hppa")
|
|
|
|
OUTPUT_ARCH(hppa)
|
2002-08-06 00:58:35 +04:00
|
|
|
ENTRY(start)
|
2002-06-06 23:48:01 +04:00
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
/* Read-only sections, merged into text segment: */
|
2002-11-28 08:56:51 +03:00
|
|
|
. = + 0x1000; /* XXX should be SIZEOF_HEADERS */
|
2002-06-06 23:48:01 +04:00
|
|
|
.text :
|
|
|
|
{
|
|
|
|
kernel_text = . ;
|
|
|
|
*(.text)
|
|
|
|
*(.rodata) *(.rodata1)
|
|
|
|
*(.reginfo)
|
|
|
|
*(.init)
|
|
|
|
*(.stub)
|
|
|
|
/* .gnu.warning sections are handled specially by elf32.em. */
|
|
|
|
*(.gnu.warning)
|
|
|
|
__unwind_start = .;
|
|
|
|
*(.PARISC.unwind)
|
|
|
|
__unwind_end = .;
|
|
|
|
. = ALIGN(4096);
|
|
|
|
} = 0 /* 0x08000240 nop filled, does not work */
|
|
|
|
etext = ABSOLUTE(.);
|
2002-08-06 00:58:35 +04:00
|
|
|
. = ALIGN(0x200000);
|
2002-06-06 23:48:01 +04:00
|
|
|
|
|
|
|
.data :
|
|
|
|
{
|
|
|
|
$global$ = . ;
|
|
|
|
. += 4;
|
|
|
|
*(.data)
|
|
|
|
/* [a-ps-z]*(.data) r[a-ce-z]*(.data) *libkern.o(.data) */
|
|
|
|
/* rd_root.o(.data) * there is an overflow bug in ld */
|
|
|
|
CONSTRUCTORS
|
|
|
|
. = ALIGN(4096);
|
|
|
|
edata = ABSOLUTE(.);
|
|
|
|
} = 0
|
|
|
|
.ctors : { *(.ctors) }
|
|
|
|
.dtors : { *(.dtors) }
|
|
|
|
|
|
|
|
__bss_start = .;
|
|
|
|
/* .sbss : { *(.sbss) *(.scommon) } */
|
|
|
|
.bss :
|
|
|
|
{
|
|
|
|
*(.dynbss) *(.bss)
|
|
|
|
*(COMMON) *($COMMON$)
|
|
|
|
. = ALIGN(4096);
|
|
|
|
}
|
|
|
|
end = ABSOLUTE(.);
|
|
|
|
}
|
|
|
|
|