svn commit: r282334 - head/sys/arm/arm

Warner Losh imp at FreeBSD.org
Sat May 2 03:01:04 UTC 2015


Author: imp
Date: Sat May  2 03:01:03 2015
New Revision: 282334
URL: https://svnweb.freebsd.org/changeset/base/282334

Log:
  Remove support for being compiled under OABI. We don't support that
  any more, so this is just dead code.
  
  Differential Revision: https://reviews.freebsd.org/D2419

Modified:
  head/sys/arm/arm/elf_machdep.c

Modified: head/sys/arm/arm/elf_machdep.c
==============================================================================
--- head/sys/arm/arm/elf_machdep.c	Sat May  2 00:29:27 2015	(r282333)
+++ head/sys/arm/arm/elf_machdep.c	Sat May  2 03:01:03 2015	(r282334)
@@ -105,7 +105,6 @@ elf32_arm_abi_supported(struct image_par
 {
 	const Elf_Ehdr *hdr = (const Elf_Ehdr *)imgp->image_header;
 
-#ifdef __ARM_EABI__
 	/*
 	 * When configured for EABI, FreeBSD supports EABI vesions 4 and 5.
 	 */
@@ -115,17 +114,6 @@ elf32_arm_abi_supported(struct image_par
 			    EF_ARM_EABI_VERSION(hdr->e_flags), imgp->args->fname);
 		return (FALSE);
 	}
-#else
-	/*
-	 * When configured for OABI, that's all we do, so reject EABI binaries.
-	 */
-	if (EF_ARM_EABI_VERSION(hdr->e_flags) != EF_ARM_EABI_VERSION_UNKNOWN) {
-		if (bootverbose)
-			uprintf("Attempting to execute EABI binary (rev %d) image %s",
-			    EF_ARM_EABI_VERSION(hdr->e_flags), imgp->args->fname);
-		return (FALSE);
-	}
-#endif
 	return (TRUE);
 }
 


More information about the svn-src-head mailing list