summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-12-23 02:42:39 +0000
committerpeter <peter@FreeBSD.org>2003-12-23 02:42:39 +0000
commit998b79089fba1b775a2a89f2c6d325d97dd21ead (patch)
tree1907b96bc90f9f9f4007eae1193fdfe639edb170 /sys/sparc64
parent47e1d21299b39eba3b43f8b5986b655cadf52175 (diff)
downloadFreeBSD-src-998b79089fba1b775a2a89f2c6d325d97dd21ead.zip
FreeBSD-src-998b79089fba1b775a2a89f2c6d325d97dd21ead.tar.gz
Add an additional field to the elf brandinfo structure to support
quicker exec-time replacement of the elf interpreter on an emulation environment where an entire /compat/* tree isn't really warranted.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/elf_machdep.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/elf_machdep.c b/sys/sparc64/sparc64/elf_machdep.c
index bb2c185..d9d2974 100644
--- a/sys/sparc64/sparc64/elf_machdep.c
+++ b/sys/sparc64/sparc64/elf_machdep.c
@@ -91,15 +91,30 @@ static Elf64_Brandinfo freebsd_brand_info = {
ELFOSABI_FREEBSD,
EM_SPARCV9,
"FreeBSD",
- "",
+ NULL,
"/libexec/ld-elf.so.1",
- &elf64_freebsd_sysvec
+ &elf64_freebsd_sysvec,
+ NULL,
};
SYSINIT(elf64, SI_SUB_EXEC, SI_ORDER_ANY,
(sysinit_cfunc_t) elf64_insert_brand_entry,
&freebsd_brand_info);
+static Elf64_Brandinfo freebsd_brand_oinfo = {
+ ELFOSABI_FREEBSD,
+ EM_SPARCV9,
+ "FreeBSD",
+ NULL,
+ "/usr/libexec/ld-elf.so.1",
+ &elf64_freebsd_sysvec,
+ NULL,
+ };
+
+SYSINIT(oelf64, SI_SUB_EXEC, SI_ORDER_ANY,
+ (sysinit_cfunc_t) elf64_insert_brand_entry,
+ &freebsd_brand_oinfo);
+
/*
* The following table holds for each relocation type:
* - the width in bits of the memory location the relocation
OpenPOWER on IntegriCloud