diff options
author | midipix <writeonce@midipix.org> | 2017-02-12 13:49:29 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-02-12 13:49:29 -0500 |
commit | 1c23fb505d3a0a8e76e95e4198cb1d25cd13356e (patch) | |
tree | c6cf6517af3d0e3451aca7275dd5154359fa58a6 /src/util | |
parent | 4cffdcf9d7bbffffc82cd899bcbdb889f5d023b8 (diff) | |
download | mdso-1c23fb505d3a0a8e76e95e4198cb1d25cd13356e.tar.bz2 mdso-1c23fb505d3a0a8e76e95e4198cb1d25cd13356e.tar.xz |
mdso_create_implib_objects(): support stdin more elegantly.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/mdso_create_implib_objects.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/util/mdso_create_implib_objects.c b/src/util/mdso_create_implib_objects.c index dd681e0..fb7cfea 100644 --- a/src/util/mdso_create_implib_objects.c +++ b/src/util/mdso_create_implib_objects.c @@ -33,17 +33,7 @@ mdso_api int mdso_create_implib_objects(const struct mdso_driver_ctx * dctx) const char * const * sym; int ret; - mdso_init_objname(objname,".dsometa_%s.o",dctx->cctx->libname); - - if (!(fout = mdso_create_object(dctx,objname))) - return MDSO_NESTED_ERROR(dctx); - - ret = mdso_objgen_dsometa(dctx,fout,0); - fclose(fout); - - if (ret < 0) - return MDSO_NESTED_ERROR(dctx); - + /* symentry, symfn */ for (unit=dctx->units; *unit; unit++) { if (mdso_get_unit_ctx(dctx,*unit,&uctx)) return MDSO_NESTED_ERROR(dctx); @@ -75,5 +65,15 @@ mdso_api int mdso_create_implib_objects(const struct mdso_driver_ctx * dctx) mdso_free_unit_ctx(uctx); } - return 0; + /* dsometa */ + mdso_init_objname(objname,".dsometa_%s.o",dctx->cctx->libname); + + if (!(fout = mdso_create_object(dctx,objname))) + return MDSO_NESTED_ERROR(dctx); + + ret = mdso_objgen_dsometa(dctx,fout,0); + fclose(fout); + + return (ret < 0) ? MDSO_NESTED_ERROR(dctx) : 0; + } |