Author: br
Date: Thu Sep 22 12:48:01 2016
New Revision: 306187
URL: https://svnweb.freebsd.org/changeset/base/306187

Log:
  Set the standard freebsd brand note for ELF binaries on MIPS,
  so binaries now get correct osreldate.
  
  Reviewed by:  jhb
  Sponsored by: DARPA, AFRL
  Sponsored by: HEIF5
  Differential Revision:        https://reviews.freebsd.org/D7899

Modified:
  head/sys/mips/mips/elf_machdep.c
  head/sys/mips/mips/freebsd32_machdep.c

Modified: head/sys/mips/mips/elf_machdep.c
==============================================================================
--- head/sys/mips/mips/elf_machdep.c    Thu Sep 22 12:41:53 2016        
(r306186)
+++ head/sys/mips/mips/elf_machdep.c    Thu Sep 22 12:48:01 2016        
(r306187)
@@ -92,7 +92,8 @@ static Elf64_Brandinfo freebsd_brand_inf
        .interp_path    = "/libexec/ld-elf.so.1",
        .sysvec         = &elf64_freebsd_sysvec,
        .interp_newpath = NULL,
-       .flags          = 0
+       .brand_note     = &elf64_freebsd_brandnote,
+       .flags          = BI_BRAND_NOTE
 };
 
 SYSINIT(elf64, SI_SUB_EXEC, SI_ORDER_ANY,
@@ -147,7 +148,8 @@ static Elf32_Brandinfo freebsd_brand_inf
        .interp_path    = "/libexec/ld-elf.so.1",
        .sysvec         = &elf32_freebsd_sysvec,
        .interp_newpath = NULL,
-       .flags          = 0
+       .brand_note     = &elf32_freebsd_brandnote,
+       .flags          = BI_BRAND_NOTE
 };
 
 SYSINIT(elf32, SI_SUB_EXEC, SI_ORDER_FIRST,

Modified: head/sys/mips/mips/freebsd32_machdep.c
==============================================================================
--- head/sys/mips/mips/freebsd32_machdep.c      Thu Sep 22 12:41:53 2016        
(r306186)
+++ head/sys/mips/mips/freebsd32_machdep.c      Thu Sep 22 12:48:01 2016        
(r306187)
@@ -117,7 +117,8 @@ static Elf32_Brandinfo freebsd_brand_inf
        .interp_path    = "/libexec/ld-elf.so.1",
        .sysvec         = &elf32_freebsd_sysvec,
        .interp_newpath = "/libexec/ld-elf32.so.1",
-       .flags          = 0
+       .brand_note     = &elf32_freebsd_brandnote,
+       .flags          = BI_BRAND_NOTE
 };
 
 SYSINIT(elf32, SI_SUB_EXEC, SI_ORDER_FIRST,
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to