diff options
author | midipix <writeonce@midipix.org> | 2016-10-24 21:42:41 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:53 -0500 |
commit | 251206109d1c2d9c52dc63bbce431685fbabf0a7 (patch) | |
tree | 61ce045da2207ce6cf9a7d504c499377dda78ed5 /src/driver | |
parent | 68f5d95a7ae35f7284769db992069eab119793ba (diff) | |
download | perk-251206109d1c2d9c52dc63bbce431685fbabf0a7.tar.bz2 perk-251206109d1c2d9c52dc63bbce431685fbabf0a7.tar.xz |
pe_output_import_libraries(): added error trace support.
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/pe_amain.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/driver/pe_amain.c b/src/driver/pe_amain.c index caebe58..142db3b 100644 --- a/src/driver/pe_amain.c +++ b/src/driver/pe_amain.c @@ -59,7 +59,9 @@ static ssize_t pe_paragraph_break(struct pe_unit_ctx * uctx, int * fpara) return 0; } -static void pe_perform_unit_actions(struct pe_unit_ctx * uctx) +static void pe_perform_unit_actions( + const struct pe_driver_ctx * dctx, + struct pe_unit_ctx * uctx) { int fpara = 0; uint64_t flags = uctx->cctx->fmtflags; @@ -72,7 +74,7 @@ static void pe_perform_unit_actions(struct pe_unit_ctx * uctx) if ((flags & PERK_OUTPUT_IMPORT_LIBS) || (flags & PERK_OUTPUT_IMPORT_SYMS)) { pe_paragraph_break(uctx,&fpara); - uctx->status = pe_output_import_libraries(uctx->meta,uctx->cctx,0); + uctx->status = pe_output_import_libraries(dctx,uctx->meta,0); uctx->nerrors += !!uctx->status; fpara += (uctx->meta->summary.nimplibs > 0); } @@ -100,7 +102,7 @@ int pe_main(int argc, char ** argv, char ** envp) for (unit=dctx->units; *unit; unit++) { if (!(pe_get_unit_ctx(dctx,*unit,&uctx))) { - pe_perform_unit_actions(uctx); + pe_perform_unit_actions(dctx,uctx); ret += uctx->nerrors; pe_free_unit_ctx(uctx); } |