|
1 /* |
|
2 |
|
3 Copyright (C) 2000, 2002, 2004 Silicon Graphics, Inc. All Rights Reserved. |
|
4 |
|
5 This program is free software; you can redistribute it and/or modify it |
|
6 under the terms of version 2.1 of the GNU Lesser General Public License |
|
7 as published by the Free Software Foundation. |
|
8 |
|
9 This program is distributed in the hope that it would be useful, but |
|
10 WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
12 |
|
13 Further, this software is distributed without any warranty that it is |
|
14 free of the rightful claim of any third person regarding infringement |
|
15 or the like. Any license provided herein, whether implied or |
|
16 otherwise, applies only to this software file. Patent licenses, if |
|
17 any, provided herein do not apply to combinations of this program with |
|
18 other software, or any other product whatsoever. |
|
19 |
|
20 You should have received a copy of the GNU Lesser General Public |
|
21 License along with this program; if not, write the Free Software |
|
22 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301, |
|
23 USA. |
|
24 |
|
25 Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane, |
|
26 Mountain View, CA 94043, or: |
|
27 |
|
28 http://www.sgi.com |
|
29 |
|
30 For further information regarding this notice, see: |
|
31 |
|
32 http://oss.sgi.com/projects/GenInfo/NoticeExplan |
|
33 |
|
34 */ |
|
35 |
|
36 |
|
37 |
|
38 #ifndef DWARF_INCL_H |
|
39 #define DWARF_INCL_H |
|
40 #if (!defined(HAVE_RAW_LIBELF_OK) && defined(HAVE_LIBELF_OFF64_OK) ) |
|
41 /* At a certain point libelf.h requires _GNU_SOURCE. |
|
42 here we assume the criteria in configure determine that |
|
43 usefully. |
|
44 */ |
|
45 #define _GNU_SOURCE 1 |
|
46 #endif |
|
47 |
|
48 |
|
49 #include "libdwarfdefs.h" |
|
50 #include <string.h> |
|
51 |
|
52 #ifdef HAVE_ELF_H |
|
53 #include <elf.h> |
|
54 #endif |
|
55 |
|
56 #include <limits.h> |
|
57 #include <libdwarf.h> |
|
58 #include <dwarf.h> |
|
59 |
|
60 #include "dwarf_base_types.h" |
|
61 #include "dwarf_alloc.h" |
|
62 #include "dwarf_opaque.h" |
|
63 #include "dwarf_error.h" |
|
64 #include "dwarf_util.h" |
|
65 #endif /* DWARF_INCL_H */ |