summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-09-01Clean up the obj parse patch.HEADmasterChris Johns
2014-09-01Fixed comparison of ELF object namesMohammed Khoory
2014-07-24Free memory after printing the error message.Chris Johns
Reported by Serg Kruglov <skruglov@nm.ru> on the user@rtems.org list.
2014-07-15Fix rap/elf archive file loadPeng Fan
When loading an object file in an archive file for the first time, RTL complains that loader can not be found. It is because offset is bigger that cache->file_size the first time when file_size is still -1, while offset is positive because reading the archive file. This patch fixes ths problem. Flush the file_size to 0 but not -1, because file_size is unsigned type.
2014-07-12Fix colon problemPeng Fan
When loading an elf/rap object file from an archive file, error occurs with msg : file not found. This patch fix it.
2013-09-07Remove warnings.Chris Johns
2013-09-07Colon in module path fix Fixed a bug that occurs if loading a module located ↵Mohammed Khoory
in path with a colon in it
2013-09-05Fix warningsPeng Fan
2013-09-05Test for new features and new toolsPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05load rap file from ra filePeng Fan
To a single rap file, obj->oofset is 0 and rlen is actually right. But to rap file in ra file, rlen should be added obj->oofset to correctly load the contents of rap file. Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05Debug support for elf filesPeng Fan
Here I used rap_text,rap_const and etc for elf files. I use these just for elf text, elf const and etc, but not introduce new enum structure. Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05Add rpath supportPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05file details and debug supportPeng Fan
This patch contains the file details part and linkmap support. In order to save space, the linkmap part and file details part are merged into one implementation. Both use the same pointer, obj->detail. Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05assign NULL to free pointerPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05pair unlock when rap loadPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05More m68k reloc supportPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05M32r supportPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05V850 SupportPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05Moxie SupportPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05LM32 SupportPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05H8300 SupportPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05Bfin supportPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-09-05Fix symbols which need underscorePeng Fan
To some archs, the symbols are added a '_' prefix. we should handle it.
2013-07-24Sparc testcasePeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-07-24Mips SupportPeng Fan
2013-07-22powerpc supportPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-07-22ARM SupportPeng Fan
Signed-off-by: Peng Fan <van.freenix@gmail.com>
2013-07-22Fixed align and add underscorePeng Fan
2013-06-04Fix rela addendPeng Fan
If the bit 31 of info is 0, it means this is a reloc based on section. In rtl-rap.c this line 'symvalue = (Elf_Word) symsect->base + addend' show that if the bit 31 of info is 0, addend will be added to symvalue. Then if the reloc type is rela and the reloc entry is based on section, the addend should be assigned 0, otherwise error will be incured in the reloc resolving function.
2013-05-16Fixed --no-embedMohammed Khoory
--no-embed was not working in mksyms.awk because the embed variable was not being set to 0
2013-01-15Commit the correct shell-init version.Chris Johns
2013-01-15Add support for RAP module loading/unload plus a shell command.Chris Johns
Add a RAP module loading and unloading. This support wraps the dlopen API plus manages calling the entry point. The modules are also held in a list so users can find them, iterator over them and unload them. This API provides a system level way to manage application modules. The find file user needs to manage errors. Load the rap module by default and list the loaded modules. Add the RAP shell command to the shell in main.
2013-01-15Update comments.Chris Johns
2013-01-12Add format signatures. Add find files.Chris Johns
Add a format signature so loaded files can be managed by format type. Move the find file code to a common routine to allow reuse.
2013-01-01Check the BSP and include if bspport.rap is present.Chris Johns
2013-01-01Automatically load the bspport.rap if present.Chris Johns
2013-01-01Add -s for symbols to 'rtl list' command.Chris Johns
2012-12-31Create the RTL error before freeing the buffer.Chris Johns
2012-12-18Fix string handling of symbols.Chris Johns
The string handling of symbols was wrong. This has been fixed. Add some more trace output to help debugging.
2012-12-18Update the output buffer pointer when looping.Chris Johns
Fix a bug where the output buffer pointer is not updated when looping. Add read stats for the trace code.
2012-12-18Fix reading to the end of the file.Chris Johns
Stat the file and keep the size to limit requesting pasting the end of the file.
2012-12-18Add the where to the prints.Chris Johns
2012-12-15Turn on IDE disks for the PC bsp.Chris Johns
2012-12-15Remove the rtems-ld debugging.Chris Johns
2012-12-15Install the grub configuration file with the PC BSP.Chris Johns
2012-12-15The symbol is the section base and addend. Add some more debugging.Chris Johns
2012-12-15The REL and RELA handlers are backwards. Swap.Chris Johns
2012-12-13Fix the warning.Chris Johns
2012-12-13Add the PC tweak for the base address.Chris Johns
2012-12-12Relocation is almost working for RAP files.Chris Johns