Support a top level VERSION file that defines an RTEMS release.
Fix the install of the python modules including thertems-test.
Update the git python module to the RSB version. Fix the options to
not call clean and to call dirty.
Update the version python module.
Fix the rtld C++ support to the VERSION file and the top level waf
script.
The trace linker builds the both_hello example in examples-v2.
Move the various string support functions into a C++ file and stop being
inlined. Make them return const std::string.
Add ld support to rld-cc.
Add search path support to rld-config so installed common files can be used.
Fix the path bugs.
Add an absolute path function to rld-path.
1. Automatically place object files in archive files into a ra file,
using new option --runtime-lib
2. Add a new option --one-file to decide whether the collected
object files should be merged into the rap file or not.
Signed-off-by: Peng Fan <van.freenix@gmail.com>
This change added the object file details to the RAP format so aid debugging
support. The information can be optionally stripped for production images
not needed this information if space is an issue,with '--rap-strip' assigned
to rtems-ld.
Weak symbols where not being managed correctly. The symbols table
is now a class with externals and weaks as separate symtabs so
the externals can be searched first then the weaks and if not
found an unresolved error is raised. This was found creating
a libbsdport RAP file where the drivers in the all driver table
resolved to the weak symbols and so linking in nothing.
Fixing the weak symbols as found in the libbsdport library
triggered a new resolver bug. The object files now contain the
resolver state and this is used to determine if an object file
has been resolved or is currently being resolved avoiding
rescursive loops with dependent object files.
The resolver trace output is a little easier to read.
Added support for an RTEMS RAP format application file. The format is:
<header>
<LZ77>
<Application Script>
<[1..n] ELF Object files>
</LZ77>
Where the header is a text string of fields delimited by ',' and terminated
with a line feed (\n). It is variable length:
RTEMS-APP,0000000,01.00.00,LZ77,00000000\n\0
where:
RTEMS-APP : file tag for quick acceptance and rejection
Length : the length of the application in bytes including the
: header
Version : Version of the application format.
Compress : The compression format.
Checksum : CCITT CRC32 checksum.
Following the header is a nul ('\0') character then an LZ77 container
with the application loader script followed by the ELF object files.
Note, the script format will be documented else where.
Note, the final version may add a 32bit length field before each part
in the compressed container to delimit the size of the file to be
read. This is currently not in this version.
The refactoring allows better reuse of the ELF support and cleans up
some hacks from the generic file and archive handling improving the
separation of the file handling from the file format, ie ELF. The
handling of ELF object files and ELF object files inside archives
is cleaner.
The refactor cleaned up the symbol handling where the symbols now
reside in the ELF file object and references are take in symbol
pointer containers and symbol table containers.
The main purpose of the refactor is to allow support for creating
and writing ELF files.
Also added an rtems-syms command where special symbol support
can be added.