22 Commits

Author SHA1 Message Date
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
9b66527beb Only look for standard library paths if standard libraries and enabled. 2012-11-19 13:13:52 +11:00
Chris Johns
596e5fa591 Add set_header support to the ELF files. 2012-11-19 10:37:37 +11:00
Chris Johns
1976825c78 Resolve the ld and user undefines. 2012-11-19 10:36:34 +11:00
Chris Johns
ead8da1e33 Add configure option --c-opts to allow special options for testing. 2012-11-19 10:35:51 +11:00
Chris Johns
8ad4837168 Fix warning from clang. 2012-11-19 10:35:15 +11:00
Chris Johns
f1cf3a9dd3 Better handling of archive open/close and begin/end. 2012-11-18 07:37:02 +11:00
Chris Johns
065ac15a40 Remove dead code. 2012-11-17 17:42:22 +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
0b65a28b57 Fix spelling. 2012-11-17 17:31:56 +11:00
Chris Johns
16e43468ec Add FastLZ support. 2012-10-22 18:46:59 -07: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
7ec2c5a27c Ignore working files. 2012-10-22 07:12:47 -07:00
Chris Johns
8f0740b7c7 Script to test the linker. Run after building the linker. 2012-10-22 07:12:29 -07:00
Chris Johns
898fa1327f Fix the verbose level. 2012-10-22 07:11:04 -07:00
Chris Johns
8d1ab1f664 Add script output dbug messages. 2012-10-22 07:10:45 -07:00
Chris Johns
ef4061f226 Fix the command line arguments help. 2012-10-22 07:10:23 -07:00
Chris Johns
746192499f Rename rld-gcc. Add -C option.
Add a -C (also --cc) option to allow the CC to be used when linking to be
provided by the user rather than using the path. This support allows user
who work with the full path to tools rather than the environment to make
use of the linker without them needing to play with environment table.

Rename rld-gcc.[h.cpp] to rld-cc.[h,cpp] because gcc may not be the
only compiler/linker used by the RTEMS project.
2012-09-17 10:13:55 +10:00
Chris Johns
aef6d90180 Update the help to something useful. 2012-09-17 09:37:29 +10:00
Chris Johns
1ec9633dec Add rebuild and tags build commands 2012-09-17 09:37:07 +10:00
Chris Johns
993aa67acf Fix the waf script. 2012-09-15 17:58:00 +10:00
Chris Johns
ec24a379bc Add to git. 2012-05-07 08:47:11 +10:00