Mercurial > hg > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
182:e0cc66fd0551 | 183:c6a38fd8bd33 |
---|---|
52 break; | 52 break; |
53 | 53 |
54 case 'd': | 54 case 'd': |
55 // debug | 55 // debug |
56 debug_level++; | 56 debug_level++; |
57 break; | |
58 | |
59 case 'e': | |
60 // entry symbol | |
61 entrysym = arg; | |
57 break; | 62 break; |
58 | 63 |
59 case 'b': | 64 case 'b': |
60 // decb output | 65 // decb output |
61 outformat = OUTPUT_DECB; | 66 outformat = OUTPUT_DECB; |
136 "Read library libLIBSPEC.a from the search path" }, | 141 "Read library libLIBSPEC.a from the search path" }, |
137 { "library-path", 'L', "DIR", 0, | 142 { "library-path", 'L', "DIR", 0, |
138 "Add DIR to the library search path" }, | 143 "Add DIR to the library search path" }, |
139 { "section-base", 0x100, "SECT=BASE", 0, | 144 { "section-base", 0x100, "SECT=BASE", 0, |
140 "Load section SECT at BASE" }, | 145 "Load section SECT at BASE" }, |
146 { "entry", 'e', "SYM", 0, | |
147 "Specify SYM as program entry point" }, | |
141 { "sysroot", 0x101, "DIR", 0, | 148 { "sysroot", 0x101, "DIR", 0, |
142 "Specify the path to replace an initial = with in library paths" }, | 149 "Specify the path to replace an initial = with in library paths" }, |
143 { "map", 'm', "FILE", 0, | 150 { "map", 'm', "FILE", 0, |
144 "Output informaiton about the link" }, | 151 "Output informaiton about the link" }, |
145 { 0 } | 152 { 0 } |