Only build libc-do-syscall.S in Thumb mode.

This commit is contained in:
Khem Raj 2012-02-15 22:09:44 +00:00 committed by Joseph Myers
parent 7504de5a6a
commit 3fdf1316ac
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-02-15 Khem Raj <raj.khem@gmail.com>
* sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S: Disable
contents unless __thumb__.
2012-02-08 Joseph Myers <joseph@codesourcery.com> 2012-02-08 Joseph Myers <joseph@codesourcery.com>
* sysdeps/arm/crti.S, sysdeps/arm/crtn.S: New files, based on * sysdeps/arm/crti.S, sysdeps/arm/crtn.S: New files, based on

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2010 Free Software Foundation, Inc. /* Copyright (C) 2010-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -25,6 +25,7 @@
ARM unwind tables for register to register moves, the actual opcodes ARM unwind tables for register to register moves, the actual opcodes
are not defined. */ are not defined. */
#if defined(__thumb__)
.thumb .thumb
.syntax unified .syntax unified
.hidden __libc_do_syscall .hidden __libc_do_syscall
@ -44,3 +45,5 @@ ENTRY (__libc_do_syscall)
pop {r7, pc} pop {r7, pc}
.fnend .fnend
END (__libc_do_syscall) END (__libc_do_syscall)
#endif /* __thumb__ */