summaryrefslogtreecommitdiff
path: root/rld-symbols.h (follow)
AgeCommit message (Collapse)Author
2012-12-29Fix managing weak symbols.Chris Johns
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.
2012-12-08Add support to demand load relocation records.Chris Johns
Support has been added to load relocation record on demand. The relocation records are not read when the object file is first opened and read. They are read only when being written to the output file. This save loading lots of records into memory from libraries to be thrown away. The RAP format now supports writing out relocation records.
2012-11-29Add access to the value and info fields of a symbols.Chris Johns
2012-11-21Set the default value for empty symbols to 0 to match the const char* signature.Chris Johns
2012-11-17Refactor the ELF support to allow ELF write suppport.Chris Johns
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-05-07Add to git.Chris Johns