|
RTEMS Linker
0.0.1
RTEMS Tools Project
|
#include <rld-files.h>
Public Member Functions | |
| archive (const std::string &name) | |
| virtual | ~archive () |
| void | begin () |
| void | end () |
| bool | is (const std::string &name) const |
| bool | is_valid () |
| void | load_objects (objects &objs) |
| const std::string & | get_name () const |
| bool | operator< (const archive &rhs) const |
| void | create (object_list &objects) |
Public Member Functions inherited from rld::files::image | |
| image (file &name) | |
| image (const std::string &path, bool is_object=true) | |
| image () | |
| virtual | ~image () |
| virtual void | open (file &name) |
| virtual void | open (bool writable=false) |
| virtual void | close () |
| virtual ssize_t | read (void *buffer, size_t size) |
| virtual ssize_t | write (const void *buffer, size_t size) |
| virtual void | seek (off_t offset) |
| virtual bool | seek_read (off_t offset, uint8_t *buffer, size_t size) |
| virtual bool | seek_write (off_t offset, const void *buffer, size_t size) |
| const file & | name () const |
| virtual int | references () const |
| virtual size_t | size () const |
| virtual int | fd () const |
| elf::file & | elf () |
| virtual void | symbol_referenced () |
| virtual int | symbol_references () const |
| const std::string | path () const |
| bool | is_open () const |
| bool | is_writable () const |
The archive class proivdes access to object files that are held in a AR format file. GNU AR extensions are supported. The archive is a kind of image and provides the container for the object's that it contains.
| rld::files::archive::archive | ( | const std::string & | name | ) |
Open a archive format file that contains ELF object files.
| name | The name of the archive. |
|
virtual |
Close the archive.
| void rld::files::archive::begin | ( | ) |
Begin the ELF session.
| void rld::files::archive::create | ( | object_list & | objects | ) |
Create a new archive containing the given set of objects. If referening an existing archive it is overwritten.
| objects | The list of objects to place in the archive. |
| void rld::files::archive::end | ( | ) |
End the ELF session.
| const std::string& rld::files::archive::get_name | ( | ) | const |
Get the name.
| bool rld::files::archive::is | ( | const std::string & | name | ) | const |
Match the archive name.
| name | The name of the archive to check. |
| true | The name matches. |
| false | The name does not match. |
| bool rld::files::archive::is_valid | ( | ) |
Check this is a valid archive.
| true | It is a valid archive. |
| false | It is not a valid archive. |
| void rld::files::archive::load_objects | ( | objects & | objs | ) |
| bool rld::files::archive::operator< | ( | const archive & | rhs | ) | const |
Less than operator for the map container. It compares the name of the the archive.
| rhs | The right hand side of the '<' operator. |