Latest available version: IDA and decompilers v8.4.240320sp1 see all releases
Hex-Rays logo State-of-the-art binary code analysis tools
email icon
Segment groups

Macros

#define MAX_GROUPS   8
 max number of segment groups
 

Functions

idaman int ida_export set_group_selector (sel_t grp, sel_t sel)
 Create a new group of segments (used OMF files). More...
 
idaman sel_t ida_export get_group_selector (sel_t grpsel)
 Get common selector for a group of segments. More...
 

Detailed Description

Function Documentation

◆ set_group_selector()

idaman int ida_export set_group_selector ( sel_t  grp,
sel_t  sel 
)

Create a new group of segments (used OMF files).

Parameters
grpselector of group segment (segment type is SEG_GRP) You should create an 'empty' (1 byte) group segment It won't contain anything and will be used to redirect references to the group of segments to the common selector.
selcommon selector of all segments belonging to the segment You should create all segments within the group with the same selector value.
Returns
1 ok
0 too many groups (see MAX_GROUPS)

◆ get_group_selector()

idaman sel_t ida_export get_group_selector ( sel_t  grpsel)

Get common selector for a group of segments.

Parameters
grpselselector of group segment
Returns
common selector of the group or 'grpsel' if no such group is found