Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
sections.h File Reference
#include "defs.h"
#include "symtab.h"
Include dependency graph for sections.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SECTION

Defines

#define SEC_id(s)   (Sections[s].id)
#define SEC_block(s)   (Sections[s].block)
#define SEC_flags(s)   (Sections[s].flags)
#define SEC_type(s)   (Sections[s].etype)
#define SEC_entsize(s)   (Sections[s].entsize)
#define SEC_max_sec_size(s)   (Sections[s].max_sec_size)
#define SEC_name(s)   (Sections[s].name)
#define SEC_pad_size(s)   (Sections[s].pad_size)

Typedefs

typedef UINT16 SECTION_IDX

Enumerations

enum  _sec_kind {
  _SEC_UNKNOWN = 0, _SEC_TEXT, _SEC_DATA, _SEC_SDATA,
  _SEC_LDATA, _SEC_RDATA, _SEC_SRDATA, _SEC_LIT4,
  _SEC_LIT8, _SEC_LIT16, _SEC_BSS, _SEC_SBSS,
  _SEC_LBSS, _SEC_GOT, _SEC_CPLINIT, _SEC_EH_REGION,
  _SEC_EH_REGION_SUPP, _SEC_DISTR_ARRAY, _SEC_THREAD_PRIVATE_FUNCS, _SEC_INDEX_MAX
}

Functions

INT Get_Section_Elf_Flags (SECTION_IDX s)
INT Get_Section_Elf_Type (SECTION_IDX s)
INT Get_Section_Elf_Entsize (SECTION_IDX s)
SECTION_IDX Corresponding_Short_Section (SECTION_IDX sec)
BOOL SEC_is_gprel (SECTION_IDX sec)
BOOL SEC_is_merge (SECTION_IDX sec)
BOOL SEC_is_exec (SECTION_IDX sec)
BOOL SEC_is_nobits (SECTION_IDX sec)

Variables

SECTION Sections [_SEC_INDEX_MAX]

Define Documentation

#define SEC_block (   s)    (Sections[s].block)

Definition at line 89 of file sections.h.

Referenced by Get_Section_ST().

#define SEC_entsize (   s)    (Sections[s].entsize)

Definition at line 92 of file sections.h.

Referenced by Get_Section_Elf_Entsize().

#define SEC_flags (   s)    (Sections[s].flags)

Definition at line 90 of file sections.h.

Referenced by Get_Section_Elf_Flags(), SEC_is_exec(), SEC_is_gprel(), and SEC_is_merge().

#define SEC_id (   s)    (Sections[s].id)

Definition at line 88 of file sections.h.

#define SEC_max_sec_size (   s)    (Sections[s].max_sec_size)

Definition at line 93 of file sections.h.

Referenced by Allocate_Object_To_Section(), and Assign_ST_To_Named_Section().

#define SEC_name (   s)    (Sections[s].name)

Definition at line 94 of file sections.h.

Referenced by Get_Section_ST(), and Get_Section_ST_With_Given_Name().

#define SEC_pad_size (   s)    (Sections[s].pad_size)

Definition at line 95 of file sections.h.

#define SEC_type (   s)    (Sections[s].etype)

Definition at line 91 of file sections.h.

Referenced by Get_Section_Elf_Type(), and SEC_is_nobits().


Typedef Documentation

Definition at line 50 of file sections.h.


Enumeration Type Documentation

enum _sec_kind
Enumerator:
_SEC_UNKNOWN 
_SEC_TEXT 
_SEC_DATA 
_SEC_SDATA 
_SEC_LDATA 
_SEC_RDATA 
_SEC_SRDATA 
_SEC_LIT4 
_SEC_LIT8 
_SEC_LIT16 
_SEC_BSS 
_SEC_SBSS 
_SEC_LBSS 
_SEC_GOT 
_SEC_CPLINIT 
_SEC_EH_REGION 
_SEC_EH_REGION_SUPP 
_SEC_DISTR_ARRAY 
_SEC_THREAD_PRIVATE_FUNCS 
_SEC_INDEX_MAX 

Definition at line 52 of file sections.h.


Function Documentation

Definition at line 144 of file sections.cxx.

References _SEC_BSS, _SEC_DATA, _SEC_SBSS, and _SEC_SDATA.

Referenced by Shorten_Section().

Definition at line 105 of file sections.h.

References SEC_entsize.

Definition at line 97 of file sections.h.

References SEC_flags.

Definition at line 101 of file sections.h.

References SEC_type.

Definition at line 168 of file sections.cxx.

References SEC_flags, and SHF_EXECINSTR.

Referenced by Get_Section_ST().

Definition at line 156 of file sections.cxx.

References SEC_flags, and SHF_IA_64_SHORT.

Referenced by Get_Section_ST().

Definition at line 162 of file sections.cxx.

References SEC_flags, and SHF_MIPS_MERGE.

Referenced by Get_Section_ST().

Definition at line 174 of file sections.cxx.

References SEC_type, and SHT_NOBITS.

Referenced by Get_Section_ST().


Variable Documentation

Definition at line 42 of file sections.cxx.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines