summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-02-08 00:41:56 -0500
committermidipix <writeonce@midipix.org>2017-02-08 01:19:08 -0500
commit3e55ee4c865e68c28daf9fe0a90346fa5c3446f2 (patch)
tree0f9a805b6497bb828dc7da4fb5ef27a6a0ef862e /src/driver
parentc12a925ddba06fc1d11298fc26c10f2d5ffb91db (diff)
downloadmdso-3e55ee4c865e68c28daf9fe0a90346fa5c3446f2.tar.bz2
mdso-3e55ee4c865e68c28daf9fe0a90346fa5c3446f2.tar.xz
driver: utility api: added mdso_create_implib_objects().
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/mdso_amain.c3
-rw-r--r--src/driver/mdso_driver_ctx.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/driver/mdso_amain.c b/src/driver/mdso_amain.c
index b85a568..629b606 100644
--- a/src/driver/mdso_amain.c
+++ b/src/driver/mdso_amain.c
@@ -81,6 +81,9 @@ int mdso_main(int argc, char ** argv, char ** envp)
if (dctx->cctx->drvflags & MDSO_DRIVER_GENERATE_ASM)
mdso_create_implib_sources(dctx);
+ if (dctx->cctx->drvflags & MDSO_DRIVER_GENERATE_OBJECTS)
+ mdso_create_implib_objects(dctx);
+
for (unit=dctx->units; *unit && !dctx->errv[0]; unit++) {
if (!(mdso_get_unit_ctx(dctx,*unit,&uctx))) {
mdso_perform_unit_actions(dctx,uctx);
diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c
index 1c96911..3decf70 100644
--- a/src/driver/mdso_driver_ctx.c
+++ b/src/driver/mdso_driver_ctx.c
@@ -196,6 +196,10 @@ int mdso_get_driver_ctx(
cctx.drvflags |= MDSO_DRIVER_GENERATE_ASM;
break;
+ case TAG_OBJ:
+ cctx.drvflags |= MDSO_DRIVER_GENERATE_OBJECTS;
+ break;
+
case TAG_QUAD_PTR:
if (!(strcmp(entry->arg,"64")))
cctx.drvflags |= MDSO_DRIVER_QUAD_PTR;