Changeset 2995 for branches/libc-0.6/src


Ignore:
Timestamp:
Apr 6, 2007, 9:17:46 PM (19 years ago)
Author:
bird
Message:

Applied the -Zsym patch from Yuri.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/src/emxomf/emxomfld.c

    r2987 r2995  
    6464static const char *map_fname = NULL;
    6565static int map_flag = FALSE;
     66
     67
     68
    6669
    6770/* The module definition file name (input), set if a file matching
     
    13951398
    13961399  if (opt_t)
    1397       show_spawn(pszwhat);
     1400    show_spawn(pszwhat);
    13981401
    13991402  /* construct spawnvp() argument array */
     
    14871490         "\n", stderr);
    14881491  fputs ("Usage: emxomfld -o <file> [-l <lib>] [-L <libdir>] [-T <base>] [-igtsS]\n"
    1489          "                [-Zexe] [-Zdll] [-Zstack <size>] [-Zmap[=<map_file>]]\n"
     1492         "                [-Zexe] [-Zdll] [-Zstack <size>] [-Zmap[=<map_file>]]\n"
    14901493         "                [-Z[no-]autoconv] [-Zdll-search] [-O <option>] [-static]\n"
    14911494         "                [-non_shared] [-Bstatic] [-dn] [call_shared] [-Bshared]\n"
     
    15051508         "    lib<name>.lib, <name>.lib, <name>.dll, lib<name>_s.lib, <name>_s.lib.\n"
    15061509         " -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"
    15081514         "\n", stderr);
    15091515  fputs ("Environment variables:\n"
     
    15491555#define OPT_ZDLL_SEARCH     0x1008
    15501556  {"Zdll-search",0, 0, OPT_ZDLL_SEARCH},
     1557
     1558
    15511559/*  {"e", 1, 0, 'e'}, entry point */
    15521560  {"i", 0, 0, 'i'},
     
    17431751          break;
    17441752
     1753
     1754
     1755
     1756
    17451757        case OPT_LIBS_STATIC:
    17461758          opt_libs_static = 1;
     
    17731785    {
    17741786      fprintf (stderr, "emxomfld: no input files\n");
     1787
     1788
     1789
     1790
     1791
     1792
     1793
     1794
    17751795      return 1;
    17761796    }
     
    21962216      t = xstrdup (output_fname);
    21972217      _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");
    22002220
    22012221      /* Copy stub into file */
    22022222      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);
    22052225
    22062226      /* Now touch it */
    2207       if (utime(t, NULL))
     2227      if (utime(t, NULL))
    22082228        {
    22092229          perror ("emxomfld");
     
    22132233    }
    22142234
     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
    22152284  /* Return the return code of Linker or RC. */
    22162285
    22172286  return rc;
    22182287}
     2288
Note: See TracChangeset for help on using the changeset viewer.