From 9a4025874f62637b384dc4628eeabced98cde476 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Wed, 26 Nov 2014 20:06:54 +0000 Subject: Add a new ELF segment .openbsd.bootdata to the sparc64 kernel. This can be used to pass boot parameters to the kernel which can't be passed safely via the Open Firmware interface, such as softraid volume IDs and keys. The kernel already reads the arguments if available but ofwboot won't provide them until further changes are committed there. With support from deraadt, kettenis and matthew. ok deraadt@ --- sys/arch/sparc64/conf/ld.script | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/arch/sparc64/conf') diff --git a/sys/arch/sparc64/conf/ld.script b/sys/arch/sparc64/conf/ld.script index 5def4c42b2d..ffab0e81650 100644 --- a/sys/arch/sparc64/conf/ld.script +++ b/sys/arch/sparc64/conf/ld.script @@ -1,4 +1,4 @@ -/* $OpenBSD: ld.script,v 1.6 2014/01/06 21:16:31 tobiasu Exp $ */ +/* $OpenBSD: ld.script,v 1.7 2014/11/26 20:06:53 stsp Exp $ */ /* * Copyright (c) 2013 Mark Kettenis @@ -25,6 +25,7 @@ PHDRS text PT_LOAD; data PT_LOAD; openbsd_randomize 0x65a3dbe6; /* PT_OPENBSD_RANDOMIZE */ + openbsd_bootdata 0x65a41be6; /* PT_OPENBSD_BOOTDATA */ } SECTIONS @@ -48,6 +49,10 @@ SECTIONS { *(.openbsd.randomdata) } :data :openbsd_randomize + .openbsd.bootdata : + { + *(.openbsd.bootdata) + } :data :openbsd_bootdata .bss : { *(.bss) -- cgit v1.2.3