summaryrefslogtreecommitdiff
path: root/rld-rap.cpp
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-12-01 21:22:24 +1100
committerChris Johns <chrisj@rtems.org>2012-12-01 21:22:24 +1100
commit4ac37d4a9d23f91d92d415e65021086092f9daec (patch)
treef463eb58cdb18c75cca940341d1b6e7428ec2789 /rld-rap.cpp
parent710b9d53a27949accbf945bb9367cba36ac29a3b (diff)
The symbol string is the offset into the symbol table.
Diffstat (limited to 'rld-rap.cpp')
-rw-r--r--rld-rap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rld-rap.cpp b/rld-rap.cpp
index 17d2bf0..c6f8c47 100644
--- a/rld-rap.cpp
+++ b/rld-rap.cpp
@@ -529,7 +529,7 @@ namespace rld
{
if ((sym.binding () == STB_GLOBAL) || (sym.binding () == STB_WEAK))
{
- externs.push_back (external (sym_count,
+ externs.push_back (external (strtab.size () + 2,
obj.find (sym.index ()),
sym.value (),
sym.info ()));