summaryrefslogtreecommitdiffhomepage
path: root/src/archive
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-03 20:56:45 +0000
committermidipix <writeonce@midipix.org>2018-08-03 21:13:30 -0400
commita3e2cfa926e49bb4f63557bd990f83b8f4685734 (patch)
tree3edaf363a11a1fe1050780de272309ca0ac40db8 /src/archive
parent18a091990a2de49fb0c9d85b0ae8e86825f2104f (diff)
downloadmdso-a3e2cfa926e49bb4f63557bd990f83b8f4685734.tar.bz2
mdso-a3e2cfa926e49bb4f63557bd990f83b8f4685734.tar.xz
library interfaces: object file generation: simplify, re-implement with mmap.
Diffstat (limited to 'src/archive')
-rw-r--r--src/archive/mdso_argen_common.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/archive/mdso_argen_common.c b/src/archive/mdso_argen_common.c
index 3cae712..62cca47 100644
--- a/src/archive/mdso_argen_common.c
+++ b/src/archive/mdso_argen_common.c
@@ -93,7 +93,7 @@ int mdso_argen_common(
objlen += sizeof(struct pe_raw_archive_common_hdr);
/* objlen: member headers */
- ret = mdso_objgen_dsometa(dctx,0,aobj);
+ ret = mdso_objgen_dsometa(dctx,aobj);
aobj->size += 1;
aobj->size |= 1;
@@ -107,7 +107,7 @@ int mdso_argen_common(
for (psym=symv,pobj=&aobj[1]; *psym && !ret; psym++) {
if (stype[psym-symv] == MDSO_SYMBOL_TYPE_CODE) {
- ret = mdso_objgen_symfn(dctx,*psym,0,pobj);
+ ret = mdso_objgen_symfn(dctx,*psym,pobj);
pobj->size += 1;
pobj->size |= 1;
@@ -121,7 +121,7 @@ int mdso_argen_common(
pobj++;
}
- ret |= mdso_objgen_symentry(dctx,*psym,0,pobj);
+ ret |= mdso_objgen_symentry(dctx,*psym,pobj);
pobj->size += 1;
pobj->size |= 1;
@@ -205,7 +205,7 @@ int mdso_argen_common(
idx += sizeof(uint32_t);
}
- ret = mdso_objgen_dsometa(dctx,0,aobj);
+ ret = mdso_objgen_dsometa(dctx,aobj);
mdso_argen_common_hdr(
(struct pe_raw_archive_common_hdr *)mark,
@@ -228,7 +228,7 @@ int mdso_argen_common(
idx += sizeof(uint32_t);
}
- ret = mdso_objgen_symfn(dctx,*psym,0,pobj);
+ ret = mdso_objgen_symfn(dctx,*psym,pobj);
sprintf(
objname,"f%06zu.o",
@@ -259,7 +259,7 @@ int mdso_argen_common(
objname,"s%06zu.o",
psym - symv);
- ret = mdso_objgen_symentry(dctx,*psym,0,pobj);
+ ret = mdso_objgen_symentry(dctx,*psym,pobj);
mdso_argen_common_hdr(
(struct pe_raw_archive_common_hdr *)mark,