summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64/stand/boot/ld.script
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa64/stand/boot/ld.script')
-rw-r--r--sys/arch/hppa64/stand/boot/ld.script61
1 files changed, 61 insertions, 0 deletions
diff --git a/sys/arch/hppa64/stand/boot/ld.script b/sys/arch/hppa64/stand/boot/ld.script
new file mode 100644
index 00000000000..51aed14df19
--- /dev/null
+++ b/sys/arch/hppa64/stand/boot/ld.script
@@ -0,0 +1,61 @@
+/* $OpenBSD: ld.script,v 1.1 2005/04/01 10:40:48 mickey Exp $ */
+
+OUTPUT_FORMAT("elf64-hppa")
+OUTPUT_ARCH(hppa2.0w)
+ENTRY(begin)
+
+SECTIONS {
+
+ /* Read-only sections, merged into text segment: */
+ . = + SIZEOF_HEADERS;
+ .text : {
+ *(.text)
+ *(.text.*)
+ *(.rodata)
+ *(.rodata1)
+ *($CODE$)
+ etext = .;
+ } = 0x08000240
+
+ /* Read-write sections, merged into data segment: */
+ .data : {
+ $global$ = .;
+ *(.data)
+ *(.data1)
+ *(.sdata)
+ *(.sdata2)
+ *(.dynamic)
+ CONSTRUCTORS
+ edata = ABSOLUTE(.);
+ } = 0
+
+ .opd : { *(.opd) }
+ PROVIDE(__gp = .);
+ .plt : { *(.plt) }
+ .dlt : { *(.dlt) }
+
+ .bss : {
+ __bss_start = .;
+ *(.dynbss)
+ *(.bss)
+ *(.sbss)
+ *(.scommon)
+ *(COMMON)
+ end = ABSOLUTE(.);
+ __bss_end = .;
+ }
+
+ /* don't need an unwind in the boot, unless we'll have a boot-ddb (; */
+ /DISCARD/ :
+ {
+ *(.PARISC.unwind)
+ *(.exitcall.exit)
+ *(.interp)
+ *(.dynsym)
+ *(.dynstr)
+ *(.dynamic)
+ *(.hash)
+ *(.stub)
+ }
+}
+