summaryrefslogtreecommitdiffhomepage
path: root/src/object/mdso_objgen_dsometa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/mdso_objgen_dsometa.c')
-rw-r--r--src/object/mdso_objgen_dsometa.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/object/mdso_objgen_dsometa.c b/src/object/mdso_objgen_dsometa.c
index 61df843..dfe8a33 100644
--- a/src/object/mdso_objgen_dsometa.c
+++ b/src/object/mdso_objgen_dsometa.c
@@ -70,6 +70,8 @@ int mdso_objgen_dsometa(
if (vobj && !vobj->addr) {
vobj->size = objlen;
+ vobj->mapstrsnum = 1;
+ vobj->mapstrslen = 10 + liblen;
return 0;
}
@@ -217,6 +219,10 @@ int mdso_objgen_dsometa(
memcpy(&mark[0],".dsometa_",9);
memcpy(&mark[9],dctx->cctx->libname,liblen);
+ /* archive symbol map */
+ if (vobj && vobj->mapstrs)
+ memcpy(vobj->mapstrs,mark,9+liblen);
+
/* .libname */
mark = dsometa->hdr.cfh_machine;
memcpy(&mark[stroff],dctx->cctx->libname,liblen);