source: arduino-1-6-7/trunk/fuentes/arduino-ide-amd64/hardware/tools/avr/include/libelf/sys_elf.h @ 4837

Last change on this file since 4837 was 4837, checked in by daduve, 3 years ago

Adding new version

File size: 3.9 KB
Line 
1/* lib/sys_elf.h.  Generated automatically by configure.  */
2/*
3sys_elf.h.in - configure template for private "switch" file.
4Copyright (C) 1998 - 2001 Michael Riepe
5
6This library is free software; you can redistribute it and/or
7modify it under the terms of the GNU Library General Public
8License as published by the Free Software Foundation; either
9version 2 of the License, or (at your option) any later version.
10
11This library is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14Library General Public License for more details.
15
16You should have received a copy of the GNU Library General Public
17License along with this library; if not, write to the Free Software
18Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19*/
20
21/* @(#) $Id: sys_elf.h.in,v 1.13 2008/05/23 08:57:07 michael Exp $ */
22
23/*
24 * DO NOT USE THIS IN APPLICATIONS - #include <libelf.h> INSTEAD!
25 */
26
27/* Define to `<elf.h>' or `<sys/elf.h>' if one of them is present */
28#define __LIBELF_HEADER_ELF_H <elf.h>
29
30/* Define if Elf32_Dyn is declared in <link.h> */
31/* #undef __LIBELF_NEED_LINK_H */
32
33/* Define if Elf32_Dyn is declared in <sys/link.h> */
34/* #undef __LIBELF_NEED_SYS_LINK_H */
35
36/* Define if you want 64-bit support (and your system supports it) */
37#define __LIBELF64 1
38
39/* Define if you want 64-bit support, and are running IRIX */
40/* #undef __LIBELF64_IRIX */
41
42/* Define if you want 64-bit support, and are running Linux */
43/* #undef __LIBELF64_LINUX */
44
45/* Define if you want symbol versioning (and your system supports it) */
46#define __LIBELF_SYMBOL_VERSIONS 1
47
48/* Define to a 64-bit signed integer type if one exists */
49#define __libelf_i64_t long
50
51/* Define to a 64-bit unsigned integer type if one exists */
52#define __libelf_u64_t unsigned long
53
54/* Define to a 32-bit signed integer type if one exists */
55#define __libelf_i32_t int
56
57/* Define to a 32-bit unsigned integer type if one exists */
58#define __libelf_u32_t unsigned int
59
60/* Define to a 16-bit signed integer type if one exists */
61#define __libelf_i16_t short
62
63/* Define to a 16-bit unsigned integer type if one exists */
64#define __libelf_u16_t unsigned short
65
66/*
67 * Ok, now get the correct instance of elf.h...
68 */
69#ifdef __LIBELF_HEADER_ELF_H
70# include __LIBELF_HEADER_ELF_H
71#else /* __LIBELF_HEADER_ELF_H */
72# if __LIBELF_INTERNAL__
73#  include <elf_repl.h>
74# else /* __LIBELF_INTERNAL__ */
75#  include <libelf/elf_repl.h>
76# endif /* __LIBELF_INTERNAL__ */
77#endif /* __LIBELF_HEADER_ELF_H */
78
79/*
80 * On some systems, <elf.h> is severely broken.  Try to fix it.
81 */
82#ifdef __LIBELF_HEADER_ELF_H
83
84# ifndef ELF32_FSZ_ADDR
85#  define ELF32_FSZ_ADDR        4
86#  define ELF32_FSZ_HALF        2
87#  define ELF32_FSZ_OFF         4
88#  define ELF32_FSZ_SWORD       4
89#  define ELF32_FSZ_WORD        4
90# endif /* ELF32_FSZ_ADDR */
91
92# ifndef STN_UNDEF
93#  define STN_UNDEF     0
94# endif /* STN_UNDEF */
95
96# if __LIBELF64
97
98#  ifndef ELF64_FSZ_ADDR
99#   define ELF64_FSZ_ADDR       8
100#   define ELF64_FSZ_HALF       2
101#   define ELF64_FSZ_OFF        8
102#   define ELF64_FSZ_SWORD      4
103#   define ELF64_FSZ_WORD       4
104#   define ELF64_FSZ_SXWORD     8
105#   define ELF64_FSZ_XWORD      8
106#  endif /* ELF64_FSZ_ADDR */
107
108#  ifndef ELF64_ST_BIND
109#   define ELF64_ST_BIND(i)     ((i)>>4)
110#   define ELF64_ST_TYPE(i)     ((i)&0xf)
111#   define ELF64_ST_INFO(b,t)   (((b)<<4)+((t)&0xf))
112#  endif /* ELF64_ST_BIND */
113
114#  ifndef ELF64_R_SYM
115#   define ELF64_R_SYM(i)       ((Elf64_Xword)(i)>>32)
116#   define ELF64_R_TYPE(i)      ((i)&0xffffffffL)
117#   define ELF64_R_INFO(s,t)    (((Elf64_Xword)(s)<<32)+((t)&0xffffffffL))
118#  endif /* ELF64_R_SYM */
119
120#  if __LIBELF64_LINUX
121typedef __libelf_u64_t  Elf64_Addr;
122typedef __libelf_u16_t  Elf64_Half;
123typedef __libelf_u64_t  Elf64_Off;
124typedef __libelf_i32_t  Elf64_Sword;
125typedef __libelf_u32_t  Elf64_Word;
126typedef __libelf_i64_t  Elf64_Sxword;
127typedef __libelf_u64_t  Elf64_Xword;
128#  endif /* __LIBELF64_LINUX */
129
130# endif /* __LIBELF64 */
131#endif /* __LIBELF_HEADER_ELF_H */
Note: See TracBrowser for help on using the repository browser.