summaryrefslogtreecommitdiffhomepage
path: root/src/arbits
diff options
context:
space:
mode:
Diffstat (limited to 'src/arbits')
-rw-r--r--src/arbits/slbt_archive_syminfo.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/arbits/slbt_archive_syminfo.c b/src/arbits/slbt_archive_syminfo.c
index 879278f..f3857eb 100644
--- a/src/arbits/slbt_archive_syminfo.c
+++ b/src/arbits/slbt_archive_syminfo.c
@@ -249,8 +249,15 @@ slbt_hidden int slbt_ar_update_syminfo(
dctx = ictx->dctx;
/* nm -P -A -g */
- if (slbt_obtain_nminfo(ictx,ectx,dctx,mctx) < 0)
- return SLBT_NESTED_ERROR(dctx);
+ if (mctx->armaps.armap_nsyms) {
+ if (slbt_obtain_nminfo(ictx,ectx,dctx,mctx) < 0)
+ return SLBT_NESTED_ERROR(dctx);
+ } else {
+ if (slbt_lib_get_txtfile_ctx(
+ dctx,"/dev/null",
+ &mctx->nminfo) < 0)
+ return SLBT_NESTED_ERROR(dctx);
+ }
/* free old syminfo vector */
if (mctx->syminfv)