Changeset ae353d3 in rtems-tools


Ignore:
Timestamp:
Nov 26, 2012, 12:50:21 AM (7 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
8190102
Parents:
eb825b1
Message:

Comment clean up.

Location:
linkers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • linkers/rld-rap.cpp

    reb825b1 rae353d3  
    4545    {
    4646      files::object&  obj;          //< The object file.
    47       files::sections text;         //< All execitable code.
     47      files::sections text;         //< All executable code.
    4848      files::sections const_;       //< All read only data.
    4949      files::sections ctor;         //< The static constructor table.
     
    6565      uint32_t        data_size;    //< The data section size.
    6666      uint32_t        bss_size;     //< The bss section size.
    67       uint32_t        symtab_off;   //< The symbols sectuint32 fioffset.
    68       uint32_t        symtab_size;  //< The symbol section size.
    69       uint32_t        strtab_off;   //< The string section file offset.
    70       uint32_t        strtab_size;  //< The string section size.
    71       uint32_t        relocs_off;   //< The reloc section file offset.
    72       uint32_t        relocs_size;  //< The reloc section size.
    73 
    74       /**
    75        * The constructor. Need to have an object file.
     67      uint32_t        symtab_off;   //< The symbols section file offset.
     68      uint32_t        symtab_size;  //< The symbols section size.
     69      uint32_t        strtab_off;   //< The strings section file offset.
     70      uint32_t        strtab_size;  //< The strings section size.
     71      uint32_t        relocs_off;   //< The reloc's section file offset.
     72      uint32_t        relocs_size;  //< The reloc's section size.
     73
     74      /**
     75       * The constructor. Need to have an object file to create.
    7676       */
    7777      object (files::object& obj);
     
    138138    };
    139139
     140    /**
     141     * Output helper function to report the sections in an object file.
     142     * This is useful when seeing the flags in the sections.
     143     *
     144     * @param name The name of the section group in the RAP file.
     145     * @param size The total of the section size's in the group.
     146     * @param secs The container of sections in the group.
     147     */
    140148    void
    141149    output (const char* name, size_t size, const files::sections& secs)
     
    309317        if (!app_obj.valid ())
    310318          throw rld::error ("Not valid: " + app_obj.name ().full (),
    311                             "rap::load-sections");
     319                            "rap::layout");
    312320
    313321        objs.push_back (object (app_obj));
     
    364372        uint32_t total = (text_size + data_size + data_size + bss_size +
    365373                          symtab_size + strtab_size + relocs_size);
    366         std::cout << "rap:image:layout: total:" << total
     374        std::cout << "rap::layout: total:" << total
    367375                  << " text:" << text_size
    368376                  << " data:" << data_size
     
    379387    {
    380388      /*
    381        * Start with the number of object files to load.
    382        */
    383       comp << metadata.size ()
    384            << objs.size ()
     389       * Start with the number of object files to load and the memory foot in
     390       * the target so it can be allocated first then add the metadata size and
     391       * then the metadata.
     392       */
     393      comp << objs.size ()
    385394           << text_size
    386395           << data_size
    387            << bss_size;
     396           << bss_size
     397           << metadata.size ()
     398           << metadata;
     399
     400      /*
     401       * Add each object file in the list.
     402       */
    388403
    389404      for (objects::iterator oi = objs.begin ();
  • linkers/rld-rap.h

    reb825b1 rae353d3  
    3434    /**
    3535     * Write a RAP format file.
     36     *
     37     * The symbol table is provided to allow incremental linking at some point
     38     * in the future. I suspect this will also require extra options being
     39     * added to control symbol visibility in the RAP file. For example an
     40     * "application" may be self contained and does not need to export any
     41     * symbols therefore no symbols are added and the only ones are part of the
     42     * relocation records to bind to base image symbols. Another case is the
     43     * need for an application to export symbols because it is using dlopen to
     44     * load modules. Here the symbols maybe 'all' or it could be a user
     45     * maintained list that are exported.
     46     *
     47     * @param app The application image to write too.
     48     * @param metadata The application metadata.
     49     * @param objects The list of object files in the application.
     50     * @param symbols The symbol table used to create the application.
    3651     */
    3752    void write (files::image&             app,
Note: See TracChangeset for help on using the changeset viewer.