diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2014-11-26 20:06:54 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2014-11-26 20:06:54 +0000 |
commit | 9a4025874f62637b384dc4628eeabced98cde476 (patch) | |
tree | 2483735f52fb98e4de15a00eecda97e512f2a3fb /sys/arch/sparc64/conf | |
parent | 17c633333b6043c9435a2e6ed1d7efaec130cf00 (diff) |
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@
Diffstat (limited to 'sys/arch/sparc64/conf')
-rw-r--r-- | sys/arch/sparc64/conf/ld.script | 7 |
1 files changed, 6 insertions, 1 deletions
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 <kettenis@openbsd.org> @@ -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) |