Changeset 2995 for branches/libc-0.6/src
- Timestamp:
- Apr 6, 2007, 9:17:46 PM (19 years ago)
- File:
-
- 1 edited
-
branches/libc-0.6/src/emx/src/emxomf/emxomfld.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/libc-0.6/src/emx/src/emxomf/emxomfld.c
r2987 r2995 64 64 static const char *map_fname = NULL; 65 65 static int map_flag = FALSE; 66 67 68 66 69 67 70 /* The module definition file name (input), set if a file matching … … 1395 1398 1396 1399 if (opt_t) 1397 show_spawn(pszwhat);1400 show_spawn(pszwhat); 1398 1401 1399 1402 /* construct spawnvp() argument array */ … … 1487 1490 "\n", stderr); 1488 1491 fputs ("Usage: emxomfld -o <file> [-l <lib>] [-L <libdir>] [-T <base>] [-igtsS]\n" 1489 " [-Zexe] [-Zdll] [-Zs tack <size>] [-Zmap[=<map_file>]]\n"1492 " [-Zexe] [-Zdll] [-Zstack <size>] [-Zmap[=<map_file>]]\n" 1490 1493 " [-Z[no-]autoconv] [-Zdll-search] [-O <option>] [-static]\n" 1491 1494 " [-non_shared] [-Bstatic] [-dn] [call_shared] [-Bshared]\n" … … 1505 1508 " lib<name>.lib, <name>.lib, <name>.dll, lib<name>_s.lib, <name>_s.lib.\n" 1506 1509 " -Zdll-search:\n" 1507 " Enables dlls as valid libraries from shared linking. (default disabled)\n" 1510 " Enables dlls as valid libraries from shared linking. (default disabled)\n", 1511 stderr); 1512 fputs (" -Zsym:" 1513 " Invoke mapsym.cmd on the mapfile to produce a .sym file. Requires -Zmap.\n" 1508 1514 "\n", stderr); 1509 1515 fputs ("Environment variables:\n" … … 1549 1555 #define OPT_ZDLL_SEARCH 0x1008 1550 1556 {"Zdll-search",0, 0, OPT_ZDLL_SEARCH}, 1557 1558 1551 1559 /* {"e", 1, 0, 'e'}, entry point */ 1552 1560 {"i", 0, 0, 'i'}, … … 1743 1751 break; 1744 1752 1753 1754 1755 1756 1745 1757 case OPT_LIBS_STATIC: 1746 1758 opt_libs_static = 1; … … 1773 1785 { 1774 1786 fprintf (stderr, "emxomfld: no input files\n"); 1787 1788 1789 1790 1791 1792 1793 1794 1775 1795 return 1; 1776 1796 } … … 2196 2216 t = xstrdup (output_fname); 2197 2217 _remext (t); 2198 _execname (&execname[0], sizeof(execname));2199 strcpy (_getname(&execname[0]), "ldstub.bin");2218 _execname(&execname[0], sizeof(execname)); 2219 strcpy(_getname(&execname[0]), "ldstub.bin"); 2200 2220 2201 2221 /* Copy stub into file */ 2202 2222 if (opt_t) 2203 fprintf(stderr, "*** copy %s to %s (-Zexe)", execname, t);2204 DosCopy (&execname[0], t, 4);2223 (stderr, "*** copy %s to %s (-Zexe)", execname, t); 2224 DosCopy(&execname[0], t, 4); 2205 2225 2206 2226 /* Now touch it */ 2207 if (utime (t, NULL))2227 if (utime(t, NULL)) 2208 2228 { 2209 2229 perror ("emxomfld"); … … 2213 2233 } 2214 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2215 2284 /* Return the return code of Linker or RC. */ 2216 2285 2217 2286 return rc; 2218 2287 } 2288
Note:
See TracChangeset
for help on using the changeset viewer.
