summaryrefslogtreecommitdiff
path: root/linkers (follow)
AgeCommit message (Collapse)Author
2014-08-27linkers: Fix the path to libelf.HEADlinkersChris Johns
2014-08-07rtms-tld: Refactor the code to match a better configuration format.Chris Johns
2014-08-05rtems-tld: Add wrapper support and start the generator coding.Chris Johns
2014-08-05Fix temporary file handling and add tempfile write support.Chris Johns
Move the static objects into the rld-process file and change the clean up to a call. Add support to write to tempfiles.
2014-08-04rtems-tld: Add generator loading support.Chris Johns
2014-08-04rtems-tld: Add recursive parsing of headers and defines.Chris Johns
2014-08-04rtems-tld: Add trace configuration support.Chris Johns
Extend the configuration support to provide the needed configuration required to generate the C stub support.
2014-08-01Add initial support for the RTEM Trace Linker.Chris Johns
The RTEMS Trace Linker or rtems-rld creates an RTEMS executable with trace support built in without any changes the existing code. This commit is an initial starting point with function signatures being read from INI files.
2014-08-01Fix building on Windows with the latest MSVC.Chris Johns
Remove some warnings.
2014-07-24std::list should be sorted before uniquePeng Fan
std::list should be sorted first, then unique can remove duplicated objects. Otherwise there will be many duplicated objects. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2013-08-30Implement a new tool 'rtems-ra'Peng Fan
rtems-ra supports converting an elf archive file into a rap archive file. It also support add, replace and delete rap files from the rap archive file.
2013-08-29Ignore common section and null(index 0) sectionPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-08-29RA format support for rtems-ldPeng Fan
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>
2013-08-29Fix archive writerPeng Fan
1. align to even address 2. Fix the use of GElf_Ehdr and Elf32_Ehdr 3. Fix the header related
2013-08-04Add rpath supportPeng Fan
2013-08-01Add section size for rap detailsPeng Fan
Add elf section size to the section details, because gdb will use the size of a section.
2013-07-26Add object file details to RAP formatPeng Fan
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.
2013-07-22collect 'STT_NOTYPE' symbolsPeng Fan
2013-07-22fix relocation records orderPeng Fan
2013-07-21Add support for relocations which reference local symbolsPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-07-19Fixed fsecPeng Fan
If one object file contains .rodata and .rodata.str1.4 sections, .rodata contains rela reloc entries, but .rodata.str1.4 do not contain reloc entris.'.rodata' and '.rodata.str1.4' will be both included in '.const'.Then using this patch to fix the rela problem Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-07-19Fixed layout problemPeng Fan
Fixed when only one elf object file is passed to rtems-ld.And fixed the error when one object file has rela relocation records, but the other does not contain relocation records. Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-07-19arch specific section supportPeng Fan
2013-03-01Fix RELA in RAP formats.Chris Johns
Fixed the RELA handling in the merging of the object sections into the RAP sections. A method in the rap::image class was not being used any more and that code transferred the RELA setting from the object sections to the image section. This change adds also transfers the rela field.
2013-03-01Support the gcc option '-Wl'.Chris Johns
Support and ignore the '-Wl,options' command line option to allow build system that use this flag to call the RTEMS linker.
2013-03-01Fix the trace help.Chris Johns
2013-03-01Fix errors building on CentOS.Chris Johns
2013-01-23Update the documentationChris Johns
2013-01-22Documentation.Chris Johns
2013-01-15Fixed the layout output to give to all the needed detail.Chris Johns
2013-01-01Use find_in_strtab when collecting symbols. Remove debug.Chris Johns
2012-12-31Sort the relocation records by offset for a section.Chris Johns
2012-12-31Make layout offsets match image offsets. Add a better strtab search.Chris Johns
The offsets of sections in objects have to be computed in load order so the offsets work. For example an object could have a sections with an alignment of 4 and 16 so the 4 may align with the current load offset and the 16 is padded to align it. This is the way the image is loaded and so the layout needs to follow these rules. The strtab search needs to be better. An STL string find was finding patrial strings and causing errors on the target.
2012-12-31Sort the relocations by offset to make the overlay work.Chris Johns
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-24Add the symsect offset to the section reloc.Chris Johns
2012-12-24Trace the reloc addend.Chris Johns
2012-12-23Improved section trace output.Chris Johns
Moved the section trace output to after the offsets have been computed and add this to the output. This allows a simple way to track the offset in an ELF section to the offset in the RAP section.
2012-12-23Change the long opt from map to overlay.Chris Johns
2012-12-23Add an overlay output.Chris Johns
An overlay shows the hex dump of the section data with the relocation records so you can see the relationship between the relocations and the section data.
2012-12-23Add a memory dump utility.Chris Johns
2012-12-21Fix the reloc symbol name.Chris Johns
2012-12-21Finish a dump of the RAP file. Fix expanding.Chris Johns
2012-12-21Set header length. Make sections public.Chris Johns
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-21Decompressor fixes.Chris Johns
Make reading compressed files more robust returning the amount of data that can be read. Also add >> operartors to get the data. Add exceptions when a read fails.
2012-12-19Turn off the debug.Chris Johns
2012-12-19RAP file utility. Decompressors RAP files.Chris Johns
2012-12-19Decompression support added.Chris Johns
The compressor can now decompress LZ77 files.
2012-12-18Fixes to load libbsdports on i386.Chris Johns
Numerous fixes to load the the libbsdport RAP file on the i386.
2012-12-18 Add object::get_section.Chris Johns
Add a method to return a section given the ELF section index. Add more trace output for debugging.