[toolchain/uClibc/git]: autodetect ARM variant/ABI setup based on the compiler settings
[openwrt.git] / toolchain / uClibc / patches-0.9.32 / 940-include_arm-asm.h.patch
1 The check for __USE_BX__ will be available in bits/arm_asm.h,
2 so the latter must be included wherever the former is used.
3
4 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
5 Cc: Khem Raj <raj.khem@gmail.com>
6 Cc: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
7 Cc: Carmelo AMOROSO <carmelo.amoroso@st.com>
8 ---
9  ldso/ldso/arm/dl-startup.h      |    1 +
10  libc/sysdeps/linux/arm/sysdep.h |    1 +
11  2 files changed, 2 insertions(+), 0 deletions(-)
12
13 diff --git a/ldso/ldso/arm/dl-startup.h b/ldso/ldso/arm/dl-startup.h
14 index a95389d..2dfdaff 100644
15 --- a/ldso/ldso/arm/dl-startup.h
16 +++ b/ldso/ldso/arm/dl-startup.h
17 @@ -7,6 +7,7 @@
18   */
19  
20  #include <features.h>
21 +#include <bits/arm_asm.h>
22  
23  #if !defined(__thumb__)
24  __asm__(
25 diff --git a/libc/sysdeps/linux/arm/sysdep.h b/libc/sysdeps/linux/arm/sysdep.h
26 index 013f88c..e498695 100644
27 --- a/libc/sysdeps/linux/arm/sysdep.h
28 +++ b/libc/sysdeps/linux/arm/sysdep.h
29 @@ -21,6 +21,7 @@
30  #define _LINUX_ARM_SYSDEP_H 1
31  
32  #include <common/sysdep.h>
33 +#include <bits/arm_asm.h>
34  
35  #include <sys/syscall.h>
36  /* For Linux we can use the system call table in the header file
37 -- 
38 1.7.1
39