aboutsummaryrefslogtreecommitdiff
path: root/bfd/seclet.h
blob: 7b58b395f4d7da1a74b188dbcfe8914a73cdc86f (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
32
33
34
#ifndef _SECLET_H
#define _SECLET_H
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*));
#endif