File: local-vfp-sysdeps.diff

package info (click to toggle)
glibc 2.24-11%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 225,316 kB
  • sloc: ansic: 996,116; asm: 261,826; sh: 10,483; makefile: 9,849; cpp: 4,169; python: 3,971; perl: 2,254; awk: 1,753; pascal: 1,521; yacc: 291; sed: 80
file content (23 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Work around broken compilers (like fpc) on armhf
 patches/arm/local-vfp-sysdeps.diff: Force the Tag_ABI_HardFP_use
 and Tag_ABI_VFP_args EABI tags when building for armhf, so compilers
 only linking crti.o will generate what appear to be armhf binaries.
Author: Adam Conrad <adconrad@debian.org>
Forwarded: no

--- eglibc-2.16.orig/sysdeps/arm/sysdep.h
+++ eglibc-2.16/sysdeps/arm/sysdep.h
@@ -117,6 +117,13 @@
    the caller.  */
 	.eabi_attribute 24, 1
 
+#ifdef __ARM_PCS_VFP
+/* Tag_ABI_HardFP_use: This code uses hard floating point */
+	.eabi_attribute 27, 3
+/* Tag_ABI_VFP_args: This code stores FP arguments in VFP registers */
+	.eabi_attribute 28, 1
+#endif  /* __ARM_PCS_VFP */
+
 /* The thumb2 encoding is reasonably complete.  Unless suppressed, use it.  */
 	.syntax unified
 # if defined(__thumb2__) && !defined(NO_THUMB)