diff lwlink/main.c @ 183:c6a38fd8bd33

Added --entry option for lwlink
author lost@l-w.ca
date Thu, 22 Dec 2011 18:01:59 -0700
parents 606123758641
children d389adbcc4ab
line wrap: on
line diff
--- a/lwlink/main.c	Wed Sep 21 21:14:09 2011 -0600
+++ b/lwlink/main.c	Thu Dec 22 18:01:59 2011 -0700
@@ -55,6 +55,11 @@
 		// debug
 		debug_level++;
 		break;
+
+	case 'e':
+		// entry symbol
+		entrysym = arg;
+		break;
 	
 	case 'b':
 		// decb output
@@ -138,6 +143,8 @@
 				"Add DIR to the library search path" },
 	{ "section-base", 0x100,	"SECT=BASE",	0,
 				"Load section SECT at BASE" },
+	{ "entry", 		'e',		"SYM",			0,
+				"Specify SYM as program entry point" },
 	{ "sysroot", 0x101,	"DIR",	0,
 				"Specify the path to replace an initial = with in library paths" },
 	{ "map",		'm',	"FILE",		0,