OLD | NEW |
1 /* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically | 1 /* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically |
2 generated from "libbfd-in.h", "init.c", "libbfd.c", "bfdio.c", | 2 generated from "libbfd-in.h", "init.c", "libbfd.c", "bfdio.c", |
3 "bfdwin.c", "cache.c", "reloc.c", "archures.c" and "elf.c". | 3 "bfdwin.c", "cache.c", "reloc.c", "archures.c" and "elf.c". |
4 Run "make headers" in your build bfd/ to regenerate. */ | 4 Run "make headers" in your build bfd/ to regenerate. */ |
5 | 5 |
6 /* libbfd.h -- Declarations used by bfd library *implementation*. | 6 /* libbfd.h -- Declarations used by bfd library *implementation*. |
7 (This include file is not for users of the library.) | 7 (This include file is not for users of the library.) |
8 | 8 |
9 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, | 9 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, |
10 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, | 10 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, |
11 2010, 2011 | 11 2010, 2011, 2012 |
12 Free Software Foundation, Inc. | 12 Free Software Foundation, Inc. |
13 | 13 |
14 Written by Cygnus Support. | 14 Written by Cygnus Support. |
15 | 15 |
16 This file is part of BFD, the Binary File Descriptor library. | 16 This file is part of BFD, the Binary File Descriptor library. |
17 | 17 |
18 This program is free software; you can redistribute it and/or modify | 18 This program is free software; you can redistribute it and/or modify |
19 it under the terms of the GNU General Public License as published by | 19 it under the terms of the GNU General Public License as published by |
20 the Free Software Foundation; either version 3 of the License, or | 20 the Free Software Foundation; either version 3 of the License, or |
21 (at your option) any later version. | 21 (at your option) any later version. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 struct section_hash_entry | 63 struct section_hash_entry |
64 { | 64 { |
65 struct bfd_hash_entry root; | 65 struct bfd_hash_entry root; |
66 asection section; | 66 asection section; |
67 }; | 67 }; |
68 | 68 |
69 /* tdata for an archive. For an input archive, cache | 69 /* tdata for an archive. For an input archive, cache |
70 needs to be free()'d. For an output archive, symdefs do. */ | 70 needs to be free()'d. For an output archive, symdefs do. */ |
71 | 71 |
72 struct artdata { | 72 struct artdata |
| 73 { |
73 file_ptr first_file_filepos; | 74 file_ptr first_file_filepos; |
74 /* Speed up searching the armap */ | 75 /* Speed up searching the armap */ |
75 htab_t cache; | 76 htab_t cache; |
76 bfd *archive_head;» » /* Only interesting in output routines */ | 77 bfd *archive_head;» » /* Only interesting in output routines. */ |
77 carsym *symdefs;» » /* the symdef entries */ | 78 carsym *symdefs;» » /* The symdef entries. */ |
78 symindex symdef_count;» /* how many there are */ | 79 symindex symdef_count;» /* How many there are. */ |
79 char *extended_names;»» /* clever intel extension */ | 80 char *extended_names;»» /* Clever intel extension. */ |
80 bfd_size_type extended_names_size; /* Size of extended names */ | 81 bfd_size_type extended_names_size; /* Size of extended names. */ |
81 /* when more compilers are standard C, this can be a time_t */ | 82 /* When more compilers are standard C, this can be a time_t. */ |
82 long armap_timestamp; /* Timestamp value written into armap. | 83 long armap_timestamp; /* Timestamp value written into armap. |
83 This is used for BSD archives to check | 84 This is used for BSD archives to check |
84 that the timestamp is recent enough | 85 that the timestamp is recent enough |
85 for the BSD linker to not complain, | 86 for the BSD linker to not complain, |
86 just before we finish writing an | 87 just before we finish writing an |
87 archive. */ | 88 archive. */ |
88 file_ptr armap_datepos; /* Position within archive to seek to | 89 file_ptr armap_datepos; /* Position within archive to seek to |
89 rewrite the date field. */ | 90 rewrite the date field. */ |
90 void *tdata; /* Backend specific information. */ | 91 void *tdata; /* Backend specific information. */ |
91 }; | 92 }; |
92 | 93 |
93 #define bfd_ardata(bfd) ((bfd)->tdata.aout_ar_data) | 94 #define bfd_ardata(bfd) ((bfd)->tdata.aout_ar_data) |
94 | 95 |
95 /* Goes in bfd's arelt_data slot */ | 96 /* Goes in bfd's arelt_data slot */ |
96 struct areltdata { | 97 struct areltdata |
97 char * arch_header;» » /* it's actually a string */ | 98 { |
98 unsigned int parsed_size;» /* octets of filesize not including ar_hdr */ | 99 char * arch_header;» » /* It's actually a string. */ |
99 unsigned int extra_size;» /* BSD4.4: extra bytes after the header. */ | 100 bfd_size_type parsed_size;» /* Octets of filesize not including ar_hdr. */ |
100 char *filename;» » /* null-terminated */ | 101 bfd_size_type extra_size;» /* BSD4.4: extra bytes after the header. */ |
101 file_ptr origin;» » /* for element of a thin archive */ | 102 char *filename;» » /* Null-terminated. */ |
| 103 file_ptr origin;» » /* For element of a thin archive. */ |
102 }; | 104 }; |
103 | 105 |
104 #define arelt_size(bfd) (((struct areltdata *)((bfd)->arelt_data))->parsed_size) | 106 #define arelt_size(bfd) (((struct areltdata *)((bfd)->arelt_data))->parsed_size) |
105 | 107 |
106 extern void *bfd_malloc | 108 extern void *bfd_malloc |
107 (bfd_size_type); | 109 (bfd_size_type); |
108 extern void *bfd_realloc | 110 extern void *bfd_realloc |
109 (void *, bfd_size_type); | 111 (void *, bfd_size_type); |
110 extern void *bfd_realloc_or_free | 112 extern void *bfd_realloc_or_free |
111 (void *, bfd_size_type); | 113 (void *, bfd_size_type); |
112 extern void *bfd_zmalloc | 114 extern void *bfd_zmalloc |
113 (bfd_size_type); | 115 (bfd_size_type); |
114 extern void *bfd_malloc2 | 116 extern void *bfd_malloc2 |
115 (bfd_size_type, bfd_size_type); | 117 (bfd_size_type, bfd_size_type); |
116 extern void *bfd_realloc2 | 118 extern void *bfd_realloc2 |
117 (void *, bfd_size_type, bfd_size_type); | 119 (void *, bfd_size_type, bfd_size_type); |
118 extern void *bfd_zmalloc2 | 120 extern void *bfd_zmalloc2 |
119 (bfd_size_type, bfd_size_type); | 121 (bfd_size_type, bfd_size_type); |
120 | 122 |
121 extern void _bfd_default_error_handler (const char *s, ...); | 123 extern void _bfd_default_error_handler (const char *s, ...); |
122 extern bfd_error_handler_type _bfd_error_handler; | 124 extern bfd_error_handler_type _bfd_error_handler; |
| 125 extern bfd_assert_handler_type _bfd_assert_handler; |
123 | 126 |
124 /* These routines allocate and free things on the BFD's objalloc. */ | 127 /* These routines allocate and free things on the BFD's objalloc. */ |
125 | 128 |
126 extern void *bfd_alloc2 | 129 extern void *bfd_alloc2 |
127 (bfd *, bfd_size_type, bfd_size_type); | 130 (bfd *, bfd_size_type, bfd_size_type); |
128 extern void *bfd_zalloc2 | 131 extern void *bfd_zalloc2 |
129 (bfd *, bfd_size_type, bfd_size_type); | 132 (bfd *, bfd_size_type, bfd_size_type); |
130 extern void bfd_release | 133 extern void bfd_release |
131 (bfd *, void *); | 134 (bfd *, void *); |
132 | 135 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 int stridx); | 204 int stridx); |
202 | 205 |
203 bfd_boolean coff_write_armap | 206 bfd_boolean coff_write_armap |
204 (bfd *arch, unsigned int elength, struct orl *map, unsigned int orl_count, | 207 (bfd *arch, unsigned int elength, struct orl *map, unsigned int orl_count, |
205 int stridx); | 208 int stridx); |
206 | 209 |
207 extern void *_bfd_generic_read_ar_hdr | 210 extern void *_bfd_generic_read_ar_hdr |
208 (bfd *); | 211 (bfd *); |
209 extern void _bfd_ar_spacepad | 212 extern void _bfd_ar_spacepad |
210 (char *, size_t, const char *, long); | 213 (char *, size_t, const char *, long); |
| 214 extern bfd_boolean _bfd_ar_sizepad |
| 215 (char *, size_t, bfd_size_type); |
211 | 216 |
212 extern void *_bfd_generic_read_ar_hdr_mag | 217 extern void *_bfd_generic_read_ar_hdr_mag |
213 (bfd *, const char *); | 218 (bfd *, const char *); |
214 | 219 |
215 extern bfd_boolean _bfd_generic_write_ar_hdr | 220 extern bfd_boolean _bfd_generic_write_ar_hdr |
216 (bfd *, bfd *); | 221 (bfd *, bfd *); |
217 | 222 |
218 extern bfd_boolean _bfd_bsd44_write_ar_hdr | 223 extern bfd_boolean _bfd_bsd44_write_ar_hdr |
219 (bfd *, bfd *); | 224 (bfd *, bfd *); |
220 | 225 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 #define _bfd_nolink_sizeof_headers \ | 454 #define _bfd_nolink_sizeof_headers \ |
450 ((int (*) (bfd *, struct bfd_link_info *)) bfd_0) | 455 ((int (*) (bfd *, struct bfd_link_info *)) bfd_0) |
451 #define _bfd_nolink_bfd_get_relocated_section_contents \ | 456 #define _bfd_nolink_bfd_get_relocated_section_contents \ |
452 ((bfd_byte *(*) (bfd *, struct bfd_link_info *, struct bfd_link_order *, \ | 457 ((bfd_byte *(*) (bfd *, struct bfd_link_info *, struct bfd_link_order *, \ |
453 bfd_byte *, bfd_boolean, asymbol **)) \ | 458 bfd_byte *, bfd_boolean, asymbol **)) \ |
454 bfd_nullvoidptr) | 459 bfd_nullvoidptr) |
455 #define _bfd_nolink_bfd_relax_section \ | 460 #define _bfd_nolink_bfd_relax_section \ |
456 ((bfd_boolean (*) \ | 461 ((bfd_boolean (*) \ |
457 (bfd *, asection *, struct bfd_link_info *, bfd_boolean *)) \ | 462 (bfd *, asection *, struct bfd_link_info *, bfd_boolean *)) \ |
458 bfd_false) | 463 bfd_false) |
error: old chunk mismatch |
None
OLD | NEW |