~vcs-imports/eglibc/trunk

« back to all changes in this revision

Viewing changes to libc/ports/sysdeps/aarch64/sysdep.h

  • Committer: joseph
  • Date: 2014-01-03 17:51:28 UTC
  • Revision ID: svn-v4:7b3dc134-2b1b-0410-93df-9e9f96275f8d:trunk:24942
Merge changes between r24468 and r24941 from /fsf/trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1997-2013 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1997-2014 Free Software Foundation, Inc.
2
2
 
3
3
   This file is part of the GNU C Library.
4
4
 
78
78
# define L(name)         .L##name
79
79
#endif
80
80
 
 
81
/* Load or store to/from a pc-relative EXPR into/from R, using T.  */
 
82
#define LDST_PCREL(OP, R, T, EXPR)  \
 
83
        adrp    T, EXPR;            \
 
84
        OP      R, [T, #:lo12:EXPR];\
 
85
 
 
86
/* Load or store to/from a got-relative EXPR into/from R, using T.  */
 
87
#define LDST_GLOBAL(OP, R, T, EXPR)     \
 
88
        adrp    T, :got:EXPR;           \
 
89
        ldr     T, [T, #:got_lo12:EXPR];\
 
90
        OP      R, [T];
 
91
 
81
92
/* Since C identifiers are not normally prefixed with an underscore
82
93
   on this system, the asm identifier `syscall_error' intrudes on the
83
94
   C name space.  Make sure we use an innocuous name.  */