Use new size-independent versions of elf internal data structures.
[deliverable/binutils-gdb.git] / bfd / seclet.h
CommitLineData
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
5This file is part of BFD, the Binary File Descriptor library.
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
20
8ad2a31d
SC
21#ifndef _SECLET_H
22#define _SECLET_H
4a8db330 23
990e7c22 24enum bfd_seclet_enum
e98e6ec1 25{
e98e6ec1 26 bfd_indirect_seclet,
267998d8 27 bfd_fill_seclet
990e7c22 28};
e98e6ec1 29
990e7c22 30struct 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 50typedef struct bfd_seclet bfd_seclet_type;
e98e6ec1 51
fefb4b30 52bfd_seclet_type *
990e7c22 53bfd_new_seclet PARAMS ((bfd *, asection *));
fefb4b30 54
8ad2a31d 55#endif
This page took 0.059168 seconds and 4 git commands to generate.