Mercurial > hg-old > index.cgi
diff lwlink/main.c @ 180:6ebb93b409ba
Added library paths and --section-base
author | lost |
---|---|
date | Thu, 05 Mar 2009 02:23:25 +0000 |
parents | 3706ede361ea |
children | 833d392fec82 |
line wrap: on
line diff
--- a/lwlink/main.c Wed Mar 04 05:34:17 2009 +0000 +++ b/lwlink/main.c Thu Mar 05 02:23:25 2009 +0000 @@ -84,6 +84,18 @@ outfile = "a.out"; break; + case 'l': + add_input_library(arg); + break; + + case 'L': + add_library_search(arg); + break; + + case 0x100: + add_section_base(arg); + break; + case ARGP_KEY_ARG: add_input_file(arg); break; @@ -107,7 +119,13 @@ { "raw", 'r', 0, 0, "Generate raw binary format output, equivalent of --format=raw"}, { "script", 's', "FILE", 0, - "Specify the linking script (overrides the build in defaults)"}, + "Specify the linking script (overrides the built in defaults)"}, + { "library", 'l', "LIBSPEC", 0, + "Read library libLIBSPEC.a from the search path" }, + { "library-path", 'L', "DIR", 0, + "Add DIR to the library search path" }, + { "section-base", 0x100, "SECT=BASE", 0, + "Load section SECT at BASE" }, { 0 } };