1992-10-15 18:59:13 +08: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-26 02:14:29 +08:00
|
|
|
#ifndef _SECLET_H
|
|
|
|
#define _SECLET_H
|
1992-10-15 18:59:13 +08:00
|
|
|
|
1992-11-05 21:17:38 +08:00
|
|
|
enum bfd_seclet_enum
|
1992-01-25 06:44:51 +08:00
|
|
|
{
|
|
|
|
bfd_indirect_seclet,
|
1992-04-18 00:14:34 +08:00
|
|
|
bfd_fill_seclet
|
1992-11-05 21:17:38 +08:00
|
|
|
};
|
1992-01-25 06:44:51 +08:00
|
|
|
|
1992-11-05 21:17:38 +08:00
|
|
|
struct bfd_seclet
|
1992-01-25 06:44:51 +08:00
|
|
|
{
|
1992-11-05 21:17:38 +08:00
|
|
|
struct bfd_seclet *next;
|
|
|
|
enum bfd_seclet_enum type;
|
1992-01-25 06:44:51 +08:00
|
|
|
unsigned int offset;
|
|
|
|
unsigned int size;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
asection *section;
|
|
|
|
asymbol **symbols;
|
|
|
|
} indirect;
|
1992-04-18 00:14:34 +08:00
|
|
|
struct {
|
|
|
|
int value;
|
|
|
|
} fill;
|
1992-01-25 06:44:51 +08:00
|
|
|
}
|
|
|
|
u;
|
|
|
|
};
|
|
|
|
|
1992-11-05 21:17:38 +08:00
|
|
|
typedef struct bfd_seclet bfd_seclet_type;
|
1992-01-25 06:44:51 +08:00
|
|
|
|
1992-11-05 19:13:01 +08:00
|
|
|
bfd_seclet_type *
|
1992-11-05 21:17:38 +08:00
|
|
|
bfd_new_seclet PARAMS ((bfd *, asection *));
|
1992-11-05 19:13:01 +08:00
|
|
|
|
1992-09-26 02:14:29 +08:00
|
|
|
#endif
|