summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-02-07 19:10:38 -0500
committermidipix <writeonce@midipix.org>2017-02-07 19:10:38 -0500
commitc0e12c8f017b3cf60906801605014c574637eb6a (patch)
tree9e614a09f45f532e98869d41704fe401b512c0ca
parente5cc48214cd685f1a18d3b22f04d09437c46bc86 (diff)
downloadmdso-c0e12c8f017b3cf60906801605014c574637eb6a.tar.bz2
mdso-c0e12c8f017b3cf60906801605014c574637eb6a.tar.xz
symbol entry assembly & object: renamed __foo_sym_entry.s --> .foo_symentry.s.
-rw-r--r--src/logic/mdso_asmgen_symentry.c2
-rw-r--r--src/logic/mdso_create_implib_sources.c2
-rw-r--r--src/object/mdso_objgen_symentry.c10
3 files changed, 7 insertions, 7 deletions
diff --git a/src/logic/mdso_asmgen_symentry.c b/src/logic/mdso_asmgen_symentry.c
index fd0ec91..2b1541f 100644
--- a/src/logic/mdso_asmgen_symentry.c
+++ b/src/logic/mdso_asmgen_symentry.c
@@ -29,7 +29,7 @@ int mdso_asmgen_symentry(
const char * ptrsize;
const char * uscore;
- if (fprintf(fout,"\t.file \"__%s_sym_entry.s\"\n",sym) < 0)
+ if (fprintf(fout,"\t.file \".%s_symentry.s\"\n",sym) < 0)
return MDSO_FILE_ERROR(dctx);
if (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 1de33e3..c0d1923 100644
--- a/src/logic/mdso_create_implib_sources.c
+++ b/src/logic/mdso_create_implib_sources.c
@@ -51,7 +51,7 @@ mdso_api int mdso_create_implib_sources(const struct mdso_driver_ctx * dctx)
return MDSO_NESTED_ERROR(dctx);
for (sym=uctx->syms; *sym; sym++) {
- mdso_init_asmname(asmname,"__%s_sym_entry.s",*sym);
+ mdso_init_asmname(asmname,".%s_symentry.s",*sym);
if (!(fout = mdso_create_asm_source(dctx,asmname)))
return MDSO_NESTED_ERROR(dctx);
diff --git a/src/object/mdso_objgen_symentry.c b/src/object/mdso_objgen_symentry.c
index 9dd22be..62e2ff2 100644
--- a/src/object/mdso_objgen_symentry.c
+++ b/src/object/mdso_objgen_symentry.c
@@ -160,12 +160,12 @@ int mdso_objgen_symentry(
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_entry.s",12);
+ memcpy(&mark[0],".",1);
+ memcpy(&mark[1],sym,symlen);
+ memcpy(&mark[1+symlen],"_symentry.s",11);
- datoff += 15 + symlen;
- mark += 15 + symlen;
+ datoff += 13 + symlen;
+ mark += 13 + symlen;
symrec += 2;
/* coff symbol: .dsostrs */