aboutsummaryrefslogtreecommitdiff
path: root/bfd/seclet.h
blob: d4e94520385f399b242367653e8f871437813e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
typedef enum 
{
  
  bfd_indirect_seclet,
  bfd_fill_seclet
} bfd_seclet_enum_type;


struct bfd_seclet_struct 
{
  struct bfd_seclet_struct *next;
  bfd_seclet_enum_type type;
  unsigned int offset;  
  unsigned int size;
  union 
  {
    struct 
    {
      asection *section;
      asymbol **symbols;
    } indirect;
    struct {
      int value;
    } fill;
  }
  u;
};

typedef struct bfd_seclet_struct bfd_seclet_type;

bfd_seclet_type *EXFUN(bfd_new_seclet,(bfd*,asection*));