diff lwasm/lwasm.h @ 365:3f8abaac214c

Add map file output and option to suppress local symbols in listings Add --map option to generate a symbol map in a regular format that can be used as an import for other tools. Also add --symbols-nolocals to suppress output of local symbols in the symbol listing. In other words, only global symbols are listed. Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Tue, 02 Jun 2015 20:08:58 -0600
parents 4130ffdeb5c8
children 433dbc18fb41
line wrap: on
line diff
--- a/lwasm/lwasm.h	Mon Jun 01 19:55:11 2015 -0600
+++ b/lwasm/lwasm.h	Tue Jun 02 20:08:58 2015 -0600
@@ -76,6 +76,8 @@
 	FLAG_SYMBOLS = 0x004,
 	FLAG_DEPENDNOERR = 0x0008,
 	FLAG_UNICORNS = 0x0010,
+	FLAG_MAP = 0x0020,
+	FLAG_SYMBOLS_NOLOCALS = 0x0040,
 	FLAG_NONE = 0
 };
 
@@ -306,6 +308,7 @@
 	exportlist_t *exportlist;			// list of exported symbols
 	importlist_t *importlist;			// list of imported symbols
 	char *list_file;					// name of file to list to
+	char *map_file;						// name of map file
 	char *output_file;					// output file name	
 	lw_stringlist_t input_files;		// files to assemble
 	void *input_data;					// opaque data used by the input system