~ubuntu-branches/ubuntu/utopic/eglibc/utopic

« back to all changes in this revision

Viewing changes to ports/sysdeps/arm/sysdep.h

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2012-10-26 05:14:58 UTC
  • mfrom: (1.5.1) (4.4.22 experimental)
  • Revision ID: package-import@ubuntu.com-20121026051458-oryotr4i03ob5pab
Tags: 2.16-0ubuntu1
* Merge with unreleased 2.16 in Debian experimental, remaining changes:
  - Drop the Breaks line from libc6, which refers to a Debian transition
  - Remove the libc6 recommends on libc6-i686, which we don't build
  - Enable libc6{,-dev}-armel on armhf and libc6{-dev}-armhf on armel
  - Ship update-locale and validlocale in /usr/sbin in libc-bin
  - Don't build locales or locales-all in Ubuntu, we rely on langpacks
  - Heavily mangle the way we do service restarting on major upgrades
  - Use different MIN_KERNEL_SUPPORTED versions than Debian, due to
    buildd needs.  This should be universally bumped to 3.2.0 once all
    our buildds (including the PPA guests) are running precise kernels
  - Build i386 variants as -march=i686, build amd64 with -O3, and build
    ppc64 variants (both 64-bit and 32-bit) with -O3 -fno-tree-vectorize
  - Re-enable unsubmitted-ldconfig-cache-abi.diff and rebuild the cache
    on upgrades from previous versions that used a different constant
  - debian/patches/any/local-CVE-2012-3406.diff: switch to malloc when
    array grows too large to handle via alloca extension (CVE-2012-3406)
  - Build generic i386/i686 flavour with -mno-tls-direct-seg-refs
* Changes added/dropped with this merge while reducing our delta:
  - Stop building glibc docs from the eglibc source, and instead make
    the glibc-docs stub have a hard dependency on glibc-doc-reference
  - Remove outdated conflicts against ancient versions of ia32-libs
  - Drop the tzdata dependency from libc6, it's in required and minimal
  - Use gcc-4.7/g++-4.7 by default on all our supported architectures
  - Save our historical changelog as changelog.ubuntu in the source
  - Drop nscd's libaudit build-dep for now, as libaudit is in universe
  - Drop the unnecessary Breaks from libc6 to locales and locales-all
  - Ship xen's ld.so.conf.d snippet as /etc/ld.so.conf.d/libc6-xen.conf
* Disable hard failures on the test suite for the first upload to raring

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Assembler macros for ARM.
2
 
   Copyright (C) 1997, 1998, 2003, 2009, 2010 Free Software Foundation, Inc.
 
2
   Copyright (C) 1997, 1998, 2003, 2009, 2010, 2012
 
3
   Free Software Foundation, Inc.
3
4
   This file is part of the GNU C Library.
4
5
 
5
6
   The GNU C Library is free software; you can redistribute it and/or
13
14
   Lesser General Public License for more details.
14
15
 
15
16
   You should have received a copy of the GNU Lesser General Public
16
 
   License along with the GNU C Library; if not, write to the Free
17
 
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18
 
   02111-1307 USA.  */
 
17
   License along with the GNU C Library.  If not, see
 
18
   <http://www.gnu.org/licenses/>.  */
19
19
 
20
20
#include <sysdeps/generic/sysdep.h>
21
21
#include <features.h>
29
29
 
30
30
/* Syntactic details of assembler.  */
31
31
 
32
 
#ifdef HAVE_ELF
33
 
 
34
32
#define ALIGNARG(log2) log2
35
33
/* For ELF we need the `.type' directive to make shared libs work right.  */
36
34
#define ASM_TYPE_DIRECTIVE(name,typearg) .type name,%##typearg;
37
35
#define ASM_SIZE_DIRECTIVE(name) .size name,.-name
38
36
 
39
 
/* In ELF C symbols are asm symbols.  */
40
 
#undef  NO_UNDERSCORES
41
 
#define NO_UNDERSCORES
42
 
 
43
37
#define PLTJMP(_x)      _x##(PLT)
44
38
 
45
 
#else
46
 
 
47
 
#define ALIGNARG(log2) log2
48
 
#define ASM_TYPE_DIRECTIVE(name,type)   /* Nothing is specified.  */
49
 
#define ASM_SIZE_DIRECTIVE(name)        /* Nothing is specified.  */
50
 
 
51
 
#define PLTJMP(_x)      _x
52
 
 
53
 
#endif
54
 
 
55
39
/* APCS-32 doesn't preserve the condition codes across function call. */
56
40
#ifdef __APCS_32__
57
41
#define LOADREGS(cond, base, reglist...)\
93
77
 
94
78
/* If compiled for profiling, call `mcount' at the start of each function.  */
95
79
#ifdef  PROF
96
 
/* Call __gnu_mcount_nc if GCC >= 4.4 and abi = EABI.  */
97
 
#if __GNUC_PREREQ(4,4) && defined(__ARM_EABI__)
 
80
/* Call __gnu_mcount_nc if GCC >= 4.4.  */
 
81
#if __GNUC_PREREQ(4,4)
98
82
#define CALL_MCOUNT \
99
83
  str   lr,[sp, #-4]!; \
100
84
  cfi_adjust_cfa_offset (4); \
116
100
#define CALL_MCOUNT             /* Do nothing.  */
117
101
#endif
118
102
 
119
 
#ifdef  NO_UNDERSCORES
120
103
/* Since C identifiers are not normally prefixed with an underscore
121
104
   on this system, the asm identifier `syscall_error' intrudes on the
122
105
   C name space.  Make sure we use an innocuous name.  */
123
106
#define syscall_error   __syscall_error
124
 
#if __GNUC_PREREQ(4,4) && defined(__ARM_EABI__)
 
107
#if __GNUC_PREREQ(4,4)
125
108
#define mcount          __gnu_mcount_nc
126
109
#else
127
110
#define mcount          _mcount
128
111
#endif
129
 
#endif
130
112
 
131
 
#if defined(__ARM_EABI__)
132
113
/* Tag_ABI_align8_preserved: This code preserves 8-byte
133
114
   alignment in any callee.  */
134
115
        .eabi_attribute 25, 1
135
116
/* Tag_ABI_align8_needed: This code may require 8-byte alignment from
136
117
   the caller.  */
137
118
        .eabi_attribute 24, 1
138
 
#endif
139
119
 
140
120
#endif  /* __ASSEMBLER__ */