diff lwlink/lwlink.h @ 180:6ebb93b409ba

Added library paths and --section-base
author lost
date Thu, 05 Mar 2009 02:23:25 +0000
parents d610b8aef91b
children 220a760ec654
line wrap: on
line diff
--- a/lwlink/lwlink.h	Wed Mar 04 05:34:17 2009 +0000
+++ b/lwlink/lwlink.h	Thu Mar 05 02:23:25 2009 +0000
@@ -73,6 +73,7 @@
 	long filesize;
 	section_t *sections;
 	int nsections;
+	int islib;				// set to true if the file is a "-l" option
 
 	// "sub" files (like in archives or libraries)
 	int nsubs;
@@ -101,12 +102,21 @@
 extern fileinfo_t **inputfiles;
 extern char *scriptfile;
 
+extern int nlibdirs;
+extern char **libdirs;
+
+extern int nscriptls;
+extern char **scriptls;
+
 #define __lwlink_E__ extern
 #else
 #define __lwlink_E__
 #endif // __lwlink_c_seen__
 
 __lwlink_E__ void add_input_file(char *fn);
+__lwlink_E__ void add_input_library(char *fn);
+__lwlink_E__ void add_library_search(char *fn);
+__lwlink_E__ void add_section_base(char *fn);
 
 #undef __lwlink_E__