diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-08-03 16:12:37 +0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-04 15:01:18 +0100 |
commit | d557b18845d2ddc035d7f3949713ba1961a8cce1 (patch) | |
tree | 30ef739a5fa7f05ba7b67b27b1eecd3f3d12e89d /meta/recipes-core/eglibc/eglibc-2.13 | |
parent | 972d805ae3d67c5d762fd18f76f2e0465d98f7d9 (diff) | |
download | openembedded-core-d557b18845d2ddc035d7f3949713ba1961a8cce1.tar.gz openembedded-core-d557b18845d2ddc035d7f3949713ba1961a8cce1.tar.bz2 openembedded-core-d557b18845d2ddc035d7f3949713ba1961a8cce1.zip |
eglibc: fix build for armv4 machines
eglibc builds for arm-eabi unconditionally enables the libc-do-syscall.S
file, which contains thumb assembly. It's unused in arm-eabi-nothumb case,
so just ifdef the actual code.
V2: use the patch from oe.dev.
The patch is submitted to sourceware bugzilla by Khem Raj back in October
of 2010, but the status is still UNCONFIRMED and the patch isn't commited.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-2.13')
-rw-r--r-- | meta/recipes-core/eglibc/eglibc-2.13/armv4-eabi-compile-fix.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-2.13/armv4-eabi-compile-fix.patch b/meta/recipes-core/eglibc/eglibc-2.13/armv4-eabi-compile-fix.patch new file mode 100644 index 0000000000..c2407eea09 --- /dev/null +++ b/meta/recipes-core/eglibc/eglibc-2.13/armv4-eabi-compile-fix.patch @@ -0,0 +1,25 @@ +Source: http://sourceware.org/bugzilla/show_bug.cgi?id=12097 +Upstream-Status: Submitted + +The patch should be merged into glibc-ports + +-Khem +Index: libc/ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S +=================================================================== +--- libc.orig/ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S ++++ libc/ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S +@@ -16,6 +16,8 @@ + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + ++#if defined(__thumb__) ++ + #include <sysdep.h> + + /* Out-of-line syscall stub. We expect the system call number in ip +@@ -41,3 +43,5 @@ ENTRY (__libc_do_syscall) + pop {r7, pc} + .fnend + END (__libc_do_syscall) ++ ++#endif /* __thumb__ */ |