Changeset 8dd3803 in rtems-tools


Ignore:
Timestamp:
May 8, 2018, 5:09:44 AM (13 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
f7d303f
Parents:
3618a62
git-author:
Chris Johns <chrisj@…> (05/08/18 05:09:44)
git-committer:
Chris Johns <chrisj@…> (06/15/18 05:54:25)
Message:

linkers/exe-info: Set the data endian for getting the init/fini sec data.

Location:
linkers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • linkers/rtems-exeinfo.cpp

    r3618a62 r8dd3803  
    11/*
    2  * Copyright (c) 2016, Chris Johns <chrisj@rtems.org>
     2 * Copyright (c) 2016-2018, Chris Johns <chrisj@rtems.org>
    33 *
    44 * RTEMS Tools Project (http://www.rtems.org/)
     
    172172    section::section (const files::section& sec, files::byteorder byteorder)
    173173      : sec (sec),
    174         data (sec.size),
     174        data (sec.size, byteorder == rld::files::little_endian),
    175175        byteorder (byteorder)
    176176    {
     
    377377      std::cout << label << " sections: " << ifsecs.size () << std::endl;
    378378
    379       for (sections::iterator ii = ifsecs.begin ();
    380            ii != ifsecs.end ();
    381            ++ii)
     379      for (auto& sec : ifsecs)
    382380      {
    383         section&     sec = *ii;
    384         const size_t machine_size = sizeof (uint32_t);
     381        const size_t machine_size = exe.elf ().machine_size ();
    385382        const int    count = sec.data.level () / machine_size;
    386383
  • linkers/wscript

    r3618a62 r8dd3803  
    5757    conf['includes'] = [rtemstoolkit,
    5858                        rtemstoolkit + '/elftoolchain/libelf',
     59                        rtemstoolkit + '/elftoolchain/libdwarf',
    5960                        rtemstoolkit + '/elftoolchain/common',
    6061                        rtemstoolkit + '/libiberty']
     
    6465    conf['optflags'] = bld.env.C_OPTS
    6566    conf['cflags'] = ['-pipe', '-g'] + conf['optflags']
    66     conf['cxxflags'] = ['-pipe', '-g'] + conf['optflags']
     67    conf['cxxflags'] = ['-pipe', '-g', '--std=c++11'] + conf['optflags']
    6768    conf['linkflags'] = ['-g']
    6869
Note: See TracChangeset for help on using the changeset viewer.