Changeset fe19d06 in rtems-tools for linkers/rld-files.h


Ignore:
Timestamp:
Nov 20, 2012, 11:40:01 PM (7 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
a1d4930
Parents:
fd8a2c5
Message:

Fix archive GNU extension and make image read/write follow POSIX.

Fix the finding of a file name in the GNU extension for long names
in GNU archives so the correct location is referenced.

Made the image read and write routines keep reading if not all the
requested data is read or written due to possible signals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linkers/rld-files.h

    rfd8a2c5 rfe19d06  
    241241
    242242      /**
    243        * The object's offset in the archive.
     243       * The object's offset in the archive or on disk.
    244244       */
    245245      off_t offset () const;
     
    254254      std::string oname_;  //< The object name.
    255255      off_t       offset_; //< The object's offset in the archive.
    256       size_t      size_;   //< The object's size in teh archive.
     256      size_t      size_;   //< The object's size in the archive or on disk.
    257257    };
    258258
     
    309309       * Read a block from the file.
    310310       */
    311       virtual ssize_t read (uint8_t* buffer, size_t size);
     311      virtual ssize_t read (void* buffer, size_t size);
    312312
    313313      /**
     
    781781
    782782    /**
     783     * Copy the in file to the out file.
     784     *
     785     * @param in The input file.
     786     * @param out The output file.
     787     * @param size The amount to copy. If 0 the whole on in is copied.
     788     */
     789    void copy_file (image& in, image& out, size_t size = 0);
     790
     791    /**
    783792     * Find the libraries given the list of libraries as bare name which
    784793     * have 'lib' and '.a' added.
Note: See TracChangeset for help on using the changeset viewer.