Age | Commit message (Collapse) | Author |
|
|
|
|
|
Reported by Serg Kruglov <skruglov@nm.ru> on the user@rtems.org list.
|
|
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.
|
|
When loading an elf/rap object file from an archive file, error occurs
with msg : file not found. This patch fix it.
|
|
|
|
in path with a colon in it
|
|
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
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>
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
To some archs, the symbols are added a '_' prefix. we should handle it.
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
Signed-off-by: Peng Fan <van.freenix@gmail.com>
|
|
|
|
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.
|
|
--no-embed was not working in mksyms.awk because the embed variable was
not being set to 0
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
The string handling of symbols was wrong. This has been fixed.
Add some more trace output to help debugging.
|
|
Fix a bug where the output buffer pointer is not updated when looping.
Add read stats for the trace code.
|
|
Stat the file and keep the size to limit requesting pasting the
end of the file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|