diff src/lwasm.h @ 90:6097cb1486f8

Added EXPORT pseudo op
author lost
date Sat, 17 Jan 2009 05:07:45 +0000
parents 033a328a10ae
children 718998b673ee
line wrap: on
line diff
--- a/src/lwasm.h	Sat Jan 17 04:38:32 2009 +0000
+++ b/src/lwasm.h	Sat Jan 17 05:07:45 2009 +0000
@@ -41,6 +41,14 @@
 	section_reloc_list_t *next;		// next relocation
 };
 
+typedef struct export_list_s export_list_t;
+struct export_list_s
+{
+	int offset;						// offset of symbol
+	char *sym;						// name of symbol
+	export_list_t *next;			// next export	
+};
+
 #define SECTION_BSS		1	// the section contains no actual code - just uninit vars
 typedef struct sectiontab_s sectiontab_t;
 struct sectiontab_s
@@ -54,6 +62,7 @@
 	int oblen;				// how many bytes output so far?
 	int obsize;				// how big is output buffer so far?
 	section_reloc_list_t *rl;	// relocation list
+	export_list_t *exports;	// export list for the section
 };
 
 // structure for tracking macros