]>
Commit | Line | Data |
---|---|---|
4a8db330 JG |
1 | /* Definitions of little sections (seclets) for BFD. |
2 | Copyright 1992 Free Software Foundation, Inc. | |
3 | Hacked by Steve Chamberlain of Cygnus Support. | |
4 | ||
5 | This file is part of BFD, the Binary File Descriptor library. | |
6 | ||
7 | This program is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 2 of the License, or | |
10 | (at your option) any later version. | |
11 | ||
12 | This program is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with this program; if not, write to the Free Software | |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
20 | ||
8ad2a31d SC |
21 | #ifndef _SECLET_H |
22 | #define _SECLET_H | |
4a8db330 | 23 | |
990e7c22 | 24 | enum bfd_seclet_enum |
e98e6ec1 | 25 | { |
e98e6ec1 | 26 | bfd_indirect_seclet, |
267998d8 | 27 | bfd_fill_seclet |
990e7c22 | 28 | }; |
e98e6ec1 | 29 | |
990e7c22 | 30 | struct bfd_seclet |
e98e6ec1 | 31 | { |
990e7c22 JG |
32 | struct bfd_seclet *next; |
33 | enum bfd_seclet_enum type; | |
e98e6ec1 SC |
34 | unsigned int offset; |
35 | unsigned int size; | |
36 | union | |
37 | { | |
38 | struct | |
39 | { | |
40 | asection *section; | |
41 | asymbol **symbols; | |
e98e6ec1 | 42 | } indirect; |
267998d8 SC |
43 | struct { |
44 | int value; | |
45 | } fill; | |
e98e6ec1 SC |
46 | } |
47 | u; | |
48 | }; | |
49 | ||
990e7c22 | 50 | typedef struct bfd_seclet bfd_seclet_type; |
e98e6ec1 | 51 | |
fefb4b30 | 52 | bfd_seclet_type * |
990e7c22 | 53 | bfd_new_seclet PARAMS ((bfd *, asection *)); |
fefb4b30 | 54 | |
8ad2a31d | 55 | #endif |