diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-10-30 19:44:10 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-10-30 19:44:10 +0000 |
commit | 827576e18e22033145044fd2b3f2ffe227d0667b (patch) | |
tree | abf61dee2d5eb39994d6220deaa7539e0c52637c /sys/arch | |
parent | 82854087e9371518d368c1d91c1f408671853919 (diff) |
add ld script
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/conf/ld.script | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sys/arch/hppa/conf/ld.script b/sys/arch/hppa/conf/ld.script new file mode 100644 index 00000000000..35371b920d9 --- /dev/null +++ b/sys/arch/hppa/conf/ld.script @@ -0,0 +1,45 @@ +/* $OpenBSD: ld.script,v 1.1 1998/10/30 19:44:09 mickey Exp $ */ + +OUTPUT_FORMAT("elf32-hppa") +OUTPUT_ARCH(hppa) +ENTRY(__start) +SECTIONS +{ + /* Read-only sections, merged into text segment: */ + . = 0x12000; + .text : + { + kernel_text = . ; + *(.text) + *($CODE$) + *(.rodata) + *(.rodata1) + *(.reginfo) + *(.init) + *(.stub) + /* .gnu.warning sections are handled specially by elf32.em. */ + *(.gnu.warning) + } = 0 + etext = .; + + .data : + { + kernel_data = . ; + *(.data) + CONSTRUCTORS + } + .ctors : { *(.ctors) } + .dtors : { *(.dtors) } + edata = .; + + __bss_start = .; + .sbss : { *(.sbss) *(.scommon) } + .bss : + { + *(.dynbss) + *(.bss) + *(COMMON) + *($COMMON$) + } + end = .; +} |