diff options
author | peter <peter@FreeBSD.org> | 2003-12-23 02:42:39 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-12-23 02:42:39 +0000 |
commit | 998b79089fba1b775a2a89f2c6d325d97dd21ead (patch) | |
tree | 1907b96bc90f9f9f4007eae1193fdfe639edb170 /sys/ia64 | |
parent | 47e1d21299b39eba3b43f8b5986b655cadf52175 (diff) | |
download | FreeBSD-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/ia64')
-rw-r--r-- | sys/ia64/ia64/elf_machdep.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/ia64/ia64/elf_machdep.c b/sys/ia64/ia64/elf_machdep.c index dbb4bf3..1c7f1d2 100644 --- a/sys/ia64/ia64/elf_machdep.c +++ b/sys/ia64/ia64/elf_machdep.c @@ -84,15 +84,30 @@ static Elf64_Brandinfo freebsd_brand_info = { ELFOSABI_FREEBSD, EM_IA_64, "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_IA_64, + "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); + Elf_Addr link_elf_get_gp(linker_file_t); extern Elf_Addr fptr_storage[]; |