summaryrefslogtreecommitdiff
path: root/linkers/rtems-rapper.cpp
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-03-01 15:42:08 +1100
committerChris Johns <chrisj@rtems.org>2013-03-01 15:42:08 +1100
commit26b46b1d36770b49316da13adf3ee897a630a3e0 (patch)
treef9483d3598d7f6ba8db54baac1f35258fa76ae3f /linkers/rtems-rapper.cpp
parent69a123b71891df04747276387339f14e0535e4e6 (diff)
Fix RELA in RAP formats.
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.
Diffstat (limited to '')
-rw-r--r--linkers/rtems-rapper.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/linkers/rtems-rapper.cpp b/linkers/rtems-rapper.cpp
index 6c8315b..af7ba81 100644
--- a/linkers/rtems-rapper.cpp
+++ b/linkers/rtems-rapper.cpp
@@ -750,8 +750,11 @@ rap_show (rld::files::paths& raps,
{
if (r.secs[s].relocs.size ())
{
+ const char* rela = r.secs[s].rela ? "(A)" : " ";
std::cout << std::setw (16) << r.secs[s].name
- << ": info offset addend symbol name" << std::endl;
+ << ": info offset addend "
+ << rela
+ << " symbol name" << std::endl;
for (size_t f = 0; f < r.secs[s].relocs.size (); ++f)
{
rap::relocation& reloc = r.secs[s].relocs[f];