14 Commits

Author SHA1 Message Date
Chris Johns
6c28ffbf01 Set header length. Make sections public.
Set the compressed file length in the RAP header. Move
the string from the outputter to the RAP file.

Make the sections public by moving to the RAP header.
2012-12-21 17:10:18 +11:00
Chris Johns
803c60a946 RAP format up to relocation records completed.
Do not write the script into the RAP file rather just write the
init and fini labels. These are appended to the string table and
offsets in the string table added to the image.

Fi the sizes so the sections can be correctly loaded on the target.
2012-12-01 08:05:47 +11:00
Chris Johns
9c70d1577d Remove the \0 character after the header. 2012-11-29 19:03:37 +11:00
Chris Johns
a458e27164 Add exit label, ELF application and Application.
Add an exit label that is called when removing an application.

Change the "applicatiion" to "elf_application" and add a custom
format called the RAP format for applications.
2012-11-26 11:07:06 +11:00
Chris Johns
3f37835cf4 Split out the compression code for reuse. 2012-11-22 16:22:22 +11:00
Chris Johns
c2657cdc11 Clean archive names for every output format other than scripts. 2012-11-21 17:40:44 +11:00
Chris Johns
c46980ee88 Add entry point support. 2012-11-21 13:04:47 +11:00
Chris Johns
c1d16362b8 Add header to remove warning on Linux. 2012-11-21 12:11:49 +11:00
Chris Johns
a1d4930283 Set the correct header size field. 2012-11-21 11:05:04 +11:00
Chris Johns
fd8a2c559f Add support to write a metadata ELF file.
This also adds support to the ELF classes that wrap libelf. While
this is now done and seems to work I will not be using an ELF
file to hold the metadata after all.
2012-11-20 19:53:24 +11:00
Chris Johns
977c3de534 Refactor the ELF support to allow ELF write suppport.
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.
2012-11-17 17:34:33 +11:00
Chris Johns
810d0ad976 Fix repeats in output when cmd line objects depend on each other.
If an object on the command line depends on another object the output
code wrote the object files and then the dependent files and a
command line object file that is dependent ended up in the object
and dependent lists. A simple merge and unique fixed it.

Also moved the script generation code into a separate function
that can be used in a application container.
2012-10-22 17:58:34 -07:00
Chris Johns
8d1ab1f664 Add script output dbug messages. 2012-10-22 07:10:45 -07:00
Chris Johns
ec24a379bc Add to git. 2012-05-07 08:47:11 +10:00