outobj: Reorder Segment members to eliminate holes

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2011-08-28 17:03:21 +04:00
parent a30090b7e5
commit e07bd499f8

View file

@ -570,11 +570,15 @@ static struct ExtBack {
static struct Segment {
struct Segment *next;
char *name;
int32_t index; /* the NASM segment id */
int32_t obj_index; /* the OBJ-file segment index */
struct Group *grp; /* the group it beint32_ts to */
uint32_t currentpos;
int32_t align; /* can be SEG_ABS + absolute addr */
struct Public *pubhead, **pubtail, *lochead, **loctail;
char *segclass, *overlay; /* `class' is a C++ keyword :-) */
ObjRecord *orp;
enum {
CMB_PRIVATE = 0,
CMB_PUBLIC = 2,
@ -582,10 +586,6 @@ static struct Segment {
CMB_COMMON = 6
} combine;
bool use32; /* is this segment 32-bit? */
struct Public *pubhead, **pubtail, *lochead, **loctail;
char *name;
char *segclass, *overlay; /* `class' is a C++ keyword :-) */
ObjRecord *orp;
} *seghead, **segtail, *obj_seg_needs_update;
static struct Group {