Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add support hardfloat detection for arm
Baptiste Daroussin committed 10 years ago
commit fdd780bd6dff2aff44e3323218613dfda28f8480
parent 09c05b3
1 file changed +5 -2
modified libpkg/pkg_elf.c
@@ -811,8 +811,11 @@ pkg_get_myarch_elfparse(char *dest, size_t sz)
		endian_corres_str = elf_corres_to_string(endian_corres,
		    (int)elfhdr.e_ident[EI_DATA]);

-
		/* FreeBSD doesn't support the hard-float ABI yet */
-
		fpu = "softfp";
+
		if (elfhdr.e_flags & EF_ARM_VFP_FLOAT)
+
			fpu = "hardfp";
+
		else
+
			fpu = "softfp";
+

		if ((elfhdr.e_flags & 0xFF000000) != 0) {
			const char *sh_name = NULL;
			size_t shstrndx;