summaryrefslogtreecommitdiff
path: root/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
commite735d244c24b606a1d3c9a79ef731de29a7b2ef6 (patch)
treef6ba87f1f51a7255d2da20b46063ba30dab29cb5 /rld-files.h
parent4c10232ae7298504c124c33a8c0dc27c86dad5b5 (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 'rld-files.h')
-rw-r--r--rld-files.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/rld-files.h b/rld-files.h
index 65934e9..36dcc9b 100644
--- a/rld-files.h
+++ b/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.