summaryrefslogtreecommitdiff
path: root/linkers/rld-files.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-12-12 21:51:03 +1100
committerChris Johns <chrisj@rtems.org>2012-12-12 21:51:03 +1100
commit42f766f0ca91ac4e24ab502ff4c491699635f3e5 (patch)
tree411d21bf7240f29550a2411e60419e9855beaa6f /linkers/rld-files.h
parent90d8d43e4b08c4641e107c6b340c42cc12b38640 (diff)
Relocation fixes.
These changes implement a suitable relocation output in the image. The code is still not working 100% but these changes are a big improvement.
Diffstat (limited to 'linkers/rld-files.h')
-rw-r--r--linkers/rld-files.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/linkers/rld-files.h b/linkers/rld-files.h
index 65934e9..36dcc9b 100644
--- a/linkers/rld-files.h
+++ b/linkers/rld-files.h
@@ -517,11 +517,14 @@ namespace rld
*/
struct relocation
{
- const std::string name; //< The name of the symbol.
const uint32_t offset; //< The section offset.
const uint32_t type; //< The type of relocation record.
const uint32_t info; //< The ELF info field.
const int32_t addend; //< The constant addend.
+ const std::string symname; //< The name of the symbol.
+ const uint32_t symtype; //< The type of symbol.
+ const int symsect; //< The symbol's section symbol.
+ const uint32_t symvalue; //< The symbol's value.
/**
* Construct from an ELF relocation record.