#ifndef OUTPUT_INCLUDED #define OUTPUT_INCLUDED #include #include "table.h" //Macros for section header table indices #define UNDEF_NDX 0 #define TEXT_NDX 1 #define DATA_NDX 2 #define BSS_NDX 3 struct relocation { Elf32_Rela rela; /*relocation information*/ struct relocation *next; }; struct section { unsigned int obj_size; /*object code size in bytes*/ unsigned char *obj_code; /*object code*/ /*text section is word aligned*/ struct relocation *rel_list; /*relocation list*/ }; extern Table_T symbol_table; extern struct section *text; extern struct section *data; extern struct section *bss; extern int output (void); #endif