comparison lwlink/main.c @ 179:606123758641

Added --sysroot support to lwlink and the ld wrapper script
author lost@l-w.ca
date Thu, 15 Sep 2011 17:08:16 -0600
parents 08fb11004df9
children c6a38fd8bd33
comparison
equal deleted inserted replaced
178:35f7ce3ef857 179:606123758641
96 add_library_search(arg); 96 add_library_search(arg);
97 break; 97 break;
98 98
99 case 0x100: 99 case 0x100:
100 add_section_base(arg); 100 add_section_base(arg);
101 break;
102
103 case 0x101:
104 sysroot = arg;
101 break; 105 break;
102 106
103 case 'm': 107 case 'm':
104 map_file = arg; 108 map_file = arg;
105 break; 109 break;
132 "Read library libLIBSPEC.a from the search path" }, 136 "Read library libLIBSPEC.a from the search path" },
133 { "library-path", 'L', "DIR", 0, 137 { "library-path", 'L', "DIR", 0,
134 "Add DIR to the library search path" }, 138 "Add DIR to the library search path" },
135 { "section-base", 0x100, "SECT=BASE", 0, 139 { "section-base", 0x100, "SECT=BASE", 0,
136 "Load section SECT at BASE" }, 140 "Load section SECT at BASE" },
141 { "sysroot", 0x101, "DIR", 0,
142 "Specify the path to replace an initial = with in library paths" },
137 { "map", 'm', "FILE", 0, 143 { "map", 'm', "FILE", 0,
138 "Output informaiton about the link" }, 144 "Output informaiton about the link" },
139 { 0 } 145 { 0 }
140 }; 146 };
141 147