summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/helper/mdso_create_output.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/helper/mdso_create_output.c b/src/helper/mdso_create_output.c
index 39dd4d7..3b9fe5d 100644
--- a/src/helper/mdso_create_output.c
+++ b/src/helper/mdso_create_output.c
@@ -105,9 +105,14 @@ int mdso_create_asmsrc(
const struct mdso_driver_ctx * dctx,
const char * asmname)
{
- return dctx->cctx->dstdir
- ? mdso_create_output(dctx,asmname)
- : mdso_driver_fdout(dctx);
+ if (dctx->cctx->dstdir)
+ return mdso_create_output(dctx,asmname);
+
+ else if (dctx->cctx->drvflags & MDSO_DRIVER_GENERATE_OBJECTS)
+ return mdso_create_output(dctx,asmname);
+
+ else
+ return mdso_driver_fdout(dctx);
}
int mdso_create_object(