diff ticoff/intstruct.h @ 110:e650fdc743fe

tiobjd: higher-level reloc handling
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 03 Apr 2014 03:03:41 +0000
parents da103b9377e3
children 5f4141ee175b
line wrap: on
line diff
--- a/ticoff/intstruct.h	Mon Mar 31 19:06:33 2014 +0000
+++ b/ticoff/intstruct.h	Thu Apr 03 03:03:41 2014 +0000
@@ -14,6 +14,7 @@
 	unsigned	flags;
 	unsigned	nsymbols;
 	struct internal_syment **sorted_symbols;
+	struct internal_reloc *int_relocs;
 };
 
 struct internal_syment {
@@ -25,3 +26,10 @@
 	u_char		*aux;
 	struct internal_scnhdr *section;
 };
+
+struct internal_reloc {
+	unsigned	location;
+	struct internal_syment *sym;
+	int		type;
+	char		*typestr;
+};