Changeset c6b714f in rtems-tools


Ignore:
Timestamp:
Nov 25, 2012, 11:57:29 PM (7 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
4c89c2d
Parents:
1d60a4a
Message:

Load the sections by default. It is not much extra overhead.

Clean up the error messages.
Remove the copy constructor call on creating sections.
Change the symbols trace to the new symbols trace level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linkers/rld-elf.cpp

    r1d60a4a rc6b714f  
    373373    {
    374374      if (fd__ < 0)
    375         throw rld::error ("no file descriptor", "elf:file:begin");
     375        throw rld::error ("No file descriptor", "elf:file:begin");
    376376
    377377      /*
     
    379379       */
    380380      if (elf_ || (fd_ >= 0))
    381         throw rld::error ("already called", "elf:file:begin");
     381        throw rld::error ("Already called", "elf:file:begin");
    382382
    383383      /*
     
    385385       */
    386386      if (archive_ && writable_)
    387         throw rld::error ("cannot write into archives directly",
     387        throw rld::error ("Cannot write into archives directly",
    388388                          "elf:file:begin");
    389389
     
    419419
    420420      if (archive_ && (ek != ELF_K_ELF))
    421         throw rld::error ("File format in archive not ELF", "elf:file:begin: " + name__);
     421        throw rld::error ("File format in archive not ELF",
     422                          "elf:file:begin: " + name__);
    422423      else
    423424      {
     
    450451
    451452      if (!archive && !writable)
     453      {
    452454        load_header ();
     455        load_sections ();
     456      }
    453457    }
    454458
     
    636640        for (int sn = 0; sn < section_count (); ++sn)
    637641        {
    638           section sec = section (*this, sn);
     642          section sec (*this, sn);
    639643          secs[sec.name ()] = sec;
    640644        }
     
    686690              symbols::symbol sym (name, esym);
    687691
    688               if (rld::verbose () >= RLD_VERBOSE_TRACE)
     692              if (rld::verbose () >= RLD_VERBOSE_FULL_DEBUG)
    689693              {
    690                 std::cout << "elf::symbol: ";
     694                std::cout << "elf:symbol: ";
    691695                sym.output (std::cout);
    692696                std::cout << std::endl;
     
    851855      {
    852856        std::string w = where;
    853         throw rld::error ("no elf file or file descriptor", "elf:file:" + w);
     857        throw rld::error ("No ELF file or file descriptor", "elf:file:" + w);
    854858      }
    855859    }
Note: See TracChangeset for help on using the changeset viewer.