From f4d580bc73fff6d1aede6ac47e1339bb2c33d8e0 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 13 Dec 2012 10:07:32 +1100 Subject: [PATCH] Add the section offset to the symbol value. --- linkers/rld-rap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkers/rld-rap.cpp b/linkers/rld-rap.cpp index c786db9..17cd236 100644 --- a/linkers/rld-rap.cpp +++ b/linkers/rld-rap.cpp @@ -803,7 +803,7 @@ namespace rld */ externs.push_back (external (strtab.size () + 2, rap_sec, - sec.osecs[symsec] + sym.value (), + sec.offset + sec.osecs[symsec] + sym.value (), sym.info ())); symtab_size += external::rap_size;