Changeset 40fd7a0 in rtems-tools for linkers/rtems-ld.cpp


Ignore:
Timestamp:
Sep 1, 2014, 3:26:47 AM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
2f48445
Parents:
e5165d2
Message:

rld: Split the file into a path module for path specific functions.

This allows resued for other parts of the system not dependent on
objcet files or archives.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linkers/rtems-ld.cpp

    re5165d2 r40fd7a0  
    6969  { "cc",          required_argument,      NULL,           'C' },
    7070  { "exec-prefix", required_argument,      NULL,           'E' },
    71   { "march",       required_argument,      NULL,           'a' },
    72   { "mcpu",        required_argument,      NULL,           'c' },
     71  { "cflags",      required_argument,      NULL,           'c' },
    7372  { "rap-strip",   no_argument,            NULL,           'S' },
    7473  { "rpath",       required_argument,      NULL,           'R' },
     
    113112            << " -C file   : execute file as the target C compiler (also --cc)" << std::endl
    114113            << " -E prefix : the RTEMS tool prefix (also --exec-prefix)" << std::endl
    115             << " -a march  : machine architecture (also --march)" << std::endl
    116             << " -c cpu    : machine architecture's CPU (also --mcpu)" << std::endl
     114            << " -c cflags : C compiler flags (also --cflags)" << std::endl
    117115            << " -S        : do not include file details (also --rap-strip)" << std::endl
    118116            << " -R        : include file paths (also --rpath)" << std::endl
     
    174172    rld::files::cache    base;
    175173    rld::files::cache    cachera;
    176     rld::files::paths    libpaths;
    177     rld::files::paths    libs;
    178     rld::files::paths    objects;
    179     rld::files::paths    libraries;
     174    rld::path::paths     libpaths;
     175    rld::path::paths     libs;
     176    rld::path::paths     objects;
     177    rld::path::paths     libraries;
    180178    rld::symbols::bucket defines;
    181179    rld::symbols::bucket undefines;
     
    200198    while (true)
    201199    {
    202       int opt = ::getopt_long (argc, argv, "hvwVMnsSb:E:o:O:L:l:a:c:e:d:u:C:W:R:P:", rld_opts, NULL);
     200      int opt = ::getopt_long (argc, argv, "hvwVMnsSb:E:o:O:L:l:c:e:d:u:C:W:R:P:", rld_opts, NULL);
    203201      if (opt < 0)
    204202        break;
     
    275273          break;
    276274
    277         case 'a':
    278           rld::cc::march = optarg;
    279           break;
    280 
    281275        case 'c':
    282           rld::cc::mcpu = optarg;
     276          rld::cc::cflags = optarg;
    283277          break;
    284278
     
    476470          if (!outra.empty ())
    477471          {
    478             rld::files::paths ra_libs;
     472            rld::path::paths ra_libs;
    479473            bool ra_exist = false;
    480474
Note: See TracChangeset for help on using the changeset viewer.