summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2011-08-28 17:03:21 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2011-08-28 17:03:21 +0400
commite07bd499f847f5db8c12281f196119e48b578d0c (patch)
tree821326f6d6dc15a77ea91e1fde827a9853173182 /output
parenta30090b7e552a55eb86f0ad461361421f643b917 (diff)
downloadnasm-e07bd499f847f5db8c12281f196119e48b578d0c.tar.gz
nasm-e07bd499f847f5db8c12281f196119e48b578d0c.tar.bz2
nasm-e07bd499f847f5db8c12281f196119e48b578d0c.zip
outobj: Reorder Segment members to eliminate holes
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'output')
-rw-r--r--output/outobj.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/output/outobj.c b/output/outobj.c
index b07a7e4..6fa5419 100644
--- a/output/outobj.c
+++ b/output/outobj.c
@@ -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 {