armv4-eabi-compile-fix.patch 766 B

12345678910111213141516171819202122232425
  1. Source: http://sourceware.org/bugzilla/show_bug.cgi?id=12097
  2. Upstream-Status: Submitted
  3. The patch should be merged into glibc-ports
  4. -Khem
  5. Index: libc/ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S
  6. ===================================================================
  7. --- libc.orig/ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S
  8. +++ libc/ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S
  9. @@ -16,6 +16,8 @@
  10. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  11. 02111-1307 USA. */
  12. +#if defined(__thumb__)
  13. +
  14. #include <sysdep.h>
  15. /* Out-of-line syscall stub. We expect the system call number in ip
  16. @@ -41,3 +43,5 @@ ENTRY (__libc_do_syscall)
  17. pop {r7, pc}
  18. .fnend
  19. END (__libc_do_syscall)
  20. +
  21. +#endif /* __thumb__ */