1992-10-15 11:59:13 +01:00
|
|
|
/* Definitions of little sections (seclets) for BFD.
|
|
|
|
Copyright 1992 Free Software Foundation, Inc.
|
|
|
|
Hacked by Steve Chamberlain of Cygnus Support.
|
|
|
|
|
|
|
|
This file is part of BFD, the Binary File Descriptor library.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
|
|
|
1992-09-25 20:14:29 +02:00
|
|
|
#ifndef _SECLET_H
|
|
|
|
#define _SECLET_H
|
1992-10-15 11:59:13 +01:00
|
|
|
|
1992-11-05 14:17:38 +01:00
|
|
|
enum bfd_seclet_enum
|
1992-01-24 23:44:51 +01:00
|
|
|
{
|
|
|
|
bfd_indirect_seclet,
|
1992-04-17 18:14:34 +02:00
|
|
|
bfd_fill_seclet
|
1992-11-05 14:17:38 +01:00
|
|
|
};
|
1992-01-24 23:44:51 +01:00
|
|
|
|
1992-11-05 14:17:38 +01:00
|
|
|
struct bfd_seclet
|
1992-01-24 23:44:51 +01:00
|
|
|
{
|
1992-11-05 14:17:38 +01:00
|
|
|
struct bfd_seclet *next;
|
|
|
|
enum bfd_seclet_enum type;
|
1992-01-24 23:44:51 +01:00
|
|
|
unsigned int offset;
|
|
|
|
unsigned int size;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
asection *section;
|
|
|
|
asymbol **symbols;
|
|
|
|
} indirect;
|
1992-04-17 18:14:34 +02:00
|
|
|
struct {
|
|
|
|
int value;
|
|
|
|
} fill;
|
1992-01-24 23:44:51 +01:00
|
|
|
}
|
|
|
|
u;
|
|
|
|
};
|
|
|
|
|
1992-11-05 14:17:38 +01:00
|
|
|
typedef struct bfd_seclet bfd_seclet_type;
|
1992-01-24 23:44:51 +01:00
|
|
|
|
1992-11-05 12:13:01 +01:00
|
|
|
bfd_seclet_type *
|
1992-11-05 14:17:38 +01:00
|
|
|
bfd_new_seclet PARAMS ((bfd *, asection *));
|
1992-11-05 12:13:01 +01:00
|
|
|
|
1992-09-25 20:14:29 +02:00
|
|
|
#endif
|