From: Khem Raj Date: Wed, 15 Feb 2012 22:09:44 +0000 (+0000) Subject: Only build libc-do-syscall.S in Thumb mode. X-Git-Tag: glibc-2.16-ports-before-merge~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fdf1316ac44fb22cc1ffca1bcc1c9e722504445;p=thirdparty%2Fglibc.git Only build libc-do-syscall.S in Thumb mode. --- diff --git a/ChangeLog.arm b/ChangeLog.arm index 75c8f54cf0f..a690d10eb8b 100644 --- a/ChangeLog.arm +++ b/ChangeLog.arm @@ -1,3 +1,8 @@ +2012-02-15 Khem Raj + + * sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S: Disable + contents unless __thumb__. + 2012-02-08 Joseph Myers * sysdeps/arm/crti.S, sysdeps/arm/crtn.S: New files, based on diff --git a/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S b/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S index 0fca96939a9..3d3792a9be5 100644 --- a/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S +++ b/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S @@ -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. 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 are not defined. */ +#if defined(__thumb__) .thumb .syntax unified .hidden __libc_do_syscall @@ -44,3 +45,5 @@ ENTRY (__libc_do_syscall) pop {r7, pc} .fnend END (__libc_do_syscall) + +#endif /* __thumb__ */