summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-02-07 19:02:19 -0500
committermidipix <writeonce@midipix.org>2017-02-07 19:07:26 -0500
commite5cc48214cd685f1a18d3b22f04d09437c46bc86 (patch)
tree3b5d08b90636274903676d9b6f5cfa90b8d420ba
parentbc1dc46ba6c36e53d563450bcbbc876d0f5d011a (diff)
downloadmdso-e5cc48214cd685f1a18d3b22f04d09437c46bc86.tar.bz2
mdso-e5cc48214cd685f1a18d3b22f04d09437c46bc86.tar.xz
symbol function assembly & object: renamed __foo_sym_fn.s --> .foo_symfn.s.
-rw-r--r--src/logic/mdso_asmgen_symfn.c2
-rw-r--r--src/logic/mdso_create_implib_sources.c2
-rw-r--r--src/object/mdso_objgen_symfn.c10
3 files changed, 7 insertions, 7 deletions
diff --git a/src/logic/mdso_asmgen_symfn.c b/src/logic/mdso_asmgen_symfn.c
index a3960b3..e9484af 100644
--- a/src/logic/mdso_asmgen_symfn.c
+++ b/src/logic/mdso_asmgen_symfn.c
@@ -28,7 +28,7 @@ int mdso_asmgen_symfn(
const char * const * line;
const char * uscore;
- if (fprintf(fout,"\t.file \"__%s_sym_fn.s\"\n",sym) < 0)
+ if (fprintf(fout,"\t.file \".%s_symfn.s\"\n",sym) < 0)
return MDSO_FILE_ERROR(dctx);
uscore = (dctx->cctx->drvflags & MDSO_DRIVER_QUAD_PTR)
diff --git a/src/logic/mdso_create_implib_sources.c b/src/logic/mdso_create_implib_sources.c
index 864d2f5..1de33e3 100644
--- a/src/logic/mdso_create_implib_sources.c
+++ b/src/logic/mdso_create_implib_sources.c
@@ -64,7 +64,7 @@ mdso_api int mdso_create_implib_sources(const struct mdso_driver_ctx * dctx)
if (ret < 0)
return MDSO_NESTED_ERROR(dctx);
- mdso_init_asmname(asmname,"__%s_sym_fn.s",*sym);
+ mdso_init_asmname(asmname,".%s_symfn.s",*sym);
if (!(fout = mdso_create_asm_source(dctx,asmname)))
return MDSO_NESTED_ERROR(dctx);
diff --git a/src/object/mdso_objgen_symfn.c b/src/object/mdso_objgen_symfn.c
index 774d027..b42e0b3 100644
--- a/src/object/mdso_objgen_symfn.c
+++ b/src/object/mdso_objgen_symfn.c
@@ -155,12 +155,12 @@ int mdso_objgen_symfn(
mdso_obj_write_long(&symrec[1].cs_name[4],cstoff+datoff);
memcpy(symrec[0].cs_name,".file",5);
- memcpy(&mark[0],"__",2);
- memcpy(&mark[2],sym,symlen);
- memcpy(&mark[2+symlen],"_sym_fn.s",9);
+ memcpy(&mark[0],".",1);
+ memcpy(&mark[1],sym,symlen);
+ memcpy(&mark[1+symlen],"_symfn.s",8);
- datoff += 12 + symlen;
- mark += 12 + symlen;
+ datoff += 10 + symlen;
+ mark += 10 + symlen;
symrec += 2;
/* coff symbol: .text */