Add the section offset to the symbol value.

This commit is contained in:
Chris Johns 2012-12-13 10:07:32 +11:00
parent 42f766f0ca
commit f4d580bc73

View File

@ -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;