2.2 struct section

A section has the following structure:
 
struct section {
        unsigned int obj_size;
        unsigned char *obj_code; 
        struct relocation *rel_list;
};

obj_size

This member specifies the size in bytes of the section's object code.
obj_code
A section has a chunk of object code whose size is specified by obj_size. And this member points to the beginning of the chunk. For the text section, the object code must be word-aligned. That is, for each machine instruction, its byte offset from the beginning of the chunk must be a multiple of 4.
rel_list
A section has a number of relocations (see section 2.3) that are stored in a linked list. And this member points to the first relocation in the list.
table of content