view ticoff/intstruct.h @ 112:61a58677dc68

tiobjd disasm: beginning of reloc handling
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 03 Apr 2014 05:54:59 +0000
parents e650fdc743fe
children 5f4141ee175b
line wrap: on
line source

/*
 * The structures defined in this header file
 * are internal to our utility.
 */

struct internal_scnhdr {
	char		*name;
	unsigned	size;
	unsigned	data_offset;
	unsigned	reloc_offset;
	unsigned	line_offset;
	unsigned	nreloc;
	unsigned	nlineent;
	unsigned	flags;
	unsigned	nsymbols;
	struct internal_syment **sorted_symbols;
	struct internal_reloc *int_relocs;
};

struct internal_syment {
	char		*name;
	unsigned	value;
	int		scnum;
	int		type;
	int		class;
	u_char		*aux;
	struct internal_scnhdr *section;
};

struct internal_reloc {
	unsigned	location;
	struct internal_syment *sym;
	int		type;
	char		*typestr;
};