Author: jhb
Date: Wed Nov  7 18:28:55 2018
New Revision: 340229
URL: https://svnweb.freebsd.org/changeset/base/340229

Log:
  Drop the legacy ELF brandinfo for the old rtld from arm64 and riscv.
  
  These architectures never shipped binaries with an rtld path of
  /usr/libexec/ld-elf.so.1.
  
  Reviewed by:  markj
  Sponsored by: DARPA
  Differential Revision:        https://reviews.freebsd.org/D17876

Modified:
  head/sys/arm64/arm64/elf_machdep.c
  head/sys/riscv/riscv/elf_machdep.c

Modified: head/sys/arm64/arm64/elf_machdep.c
==============================================================================
--- head/sys/arm64/arm64/elf_machdep.c  Wed Nov  7 18:27:43 2018        
(r340228)
+++ head/sys/arm64/arm64/elf_machdep.c  Wed Nov  7 18:28:55 2018        
(r340229)
@@ -107,21 +107,6 @@ static Elf64_Brandinfo freebsd_brand_info = {
 SYSINIT(elf64, SI_SUB_EXEC, SI_ORDER_FIRST,
     (sysinit_cfunc_t)elf64_insert_brand_entry, &freebsd_brand_info);
 
-static Elf64_Brandinfo freebsd_brand_oinfo = {
-       .brand          = ELFOSABI_FREEBSD,
-       .machine        = EM_AARCH64,
-       .compat_3_brand = "FreeBSD",
-       .emul_path      = NULL,
-       .interp_path    = "/usr/libexec/ld-elf.so.1",
-       .sysvec         = &elf64_freebsd_sysvec,
-       .interp_newpath = NULL,
-       .brand_note     = &elf64_freebsd_brandnote,
-       .flags          = BI_CAN_EXEC_DYN | BI_BRAND_NOTE
-};
-
-SYSINIT(oelf64, SI_SUB_EXEC, SI_ORDER_ANY,
-    (sysinit_cfunc_t)elf64_insert_brand_entry, &freebsd_brand_oinfo);
-
 void
 elf64_dump_thread(struct thread *td __unused, void *dst __unused,
     size_t *off __unused)

Modified: head/sys/riscv/riscv/elf_machdep.c
==============================================================================
--- head/sys/riscv/riscv/elf_machdep.c  Wed Nov  7 18:27:43 2018        
(r340228)
+++ head/sys/riscv/riscv/elf_machdep.c  Wed Nov  7 18:28:55 2018        
(r340229)
@@ -111,22 +111,6 @@ SYSINIT(elf64, SI_SUB_EXEC, SI_ORDER_FIRST,
        (sysinit_cfunc_t) elf64_insert_brand_entry,
        &freebsd_brand_info);
 
-static Elf64_Brandinfo freebsd_brand_oinfo = {
-       .brand          = ELFOSABI_FREEBSD,
-       .machine        = EM_RISCV,
-       .compat_3_brand = "FreeBSD",
-       .emul_path      = NULL,
-       .interp_path    = "/usr/libexec/ld-elf.so.1",
-       .sysvec         = &elf64_freebsd_sysvec,
-       .interp_newpath = NULL,
-       .brand_note     = &elf64_freebsd_brandnote,
-       .flags          = BI_CAN_EXEC_DYN | BI_BRAND_NOTE
-};
-
-SYSINIT(oelf64, SI_SUB_EXEC, SI_ORDER_ANY,
-       (sysinit_cfunc_t) elf64_insert_brand_entry,
-       &freebsd_brand_oinfo);
-
 static int debug_kld;
 SYSCTL_INT(_kern, OID_AUTO, debug_kld,
           CTLFLAG_RW, &debug_kld, 0,
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to