diff options
author | midipix <writeonce@midipix.org> | 2017-02-06 23:52:25 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-02-07 00:55:19 -0500 |
commit | ea45e3920154630de07a6d47742c4803713b25a9 (patch) | |
tree | 5950374d7e56f421788d1738a97728c89df2e306 | |
parent | a604e1a6f6d62428e2eb0eaa8e0d385775022780 (diff) | |
download | mdso-ea45e3920154630de07a6d47742c4803713b25a9.tar.bz2 mdso-ea45e3920154630de07a6d47742c4803713b25a9.tar.xz |
logic: assembly source generation: use elegant static symbol names.
-rw-r--r-- | src/logic/mdso_asmgen_dsometa.c | 8 | ||||
-rw-r--r-- | src/logic/mdso_asmgen_symentry.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/logic/mdso_asmgen_dsometa.c b/src/logic/mdso_asmgen_dsometa.c index 6cf9186..85ba2c5 100644 --- a/src/logic/mdso_asmgen_dsometa.c +++ b/src/logic/mdso_asmgen_dsometa.c @@ -15,7 +15,7 @@ static const char * const asm_hdr_lines[] = { "\t.file \"__%s_dso_meta.s\"\n", "\t.section " MDSO_META_SECTION ",\"r\"\n", - "\t.globl .__dsometa_%s\n", + "\t.globl .dsometa_%s\n", 0 }; @@ -35,7 +35,7 @@ static const char * const asm_meta_lines[] = { static const char * const asm_libname_fmt = "\n\n" "\t.section " MDSO_STRS_SECTION ",\"r0\"\n\n" - "._name:\n" + ".name:\n" "\t.ascii\t\"%s\\0\"\n\n"; int mdso_asmgen_dsometa( @@ -61,13 +61,13 @@ int mdso_asmgen_dsometa( if ((fputs(alignstr,fout)) < 0) return MDSO_FILE_ERROR(dctx); - if ((fprintf(fout,".__dsometa_%s:\n",dctx->cctx->libname)) < 0) + if ((fprintf(fout,".dsometa_%s:\n",dctx->cctx->libname)) < 0) return MDSO_FILE_ERROR(dctx); if ((fprintf(fout,"\t%s\t%d\t# base\n",ptrsize,0)) < 0) return MDSO_FILE_ERROR(dctx); - if ((fprintf(fout,"\t%s\t%s\t# name\n",ptrsize,"._name")) < 0) + if ((fprintf(fout,"\t%s\t%s\t# name\n",ptrsize,".name")) < 0) return MDSO_FILE_ERROR(dctx); if ((fprintf(fout,"\t%s\t%u\t# flags\n",".long",dctx->cctx->dsoflags)) < 0) diff --git a/src/logic/mdso_asmgen_symentry.c b/src/logic/mdso_asmgen_symentry.c index 7db988a..fd0ec91 100644 --- a/src/logic/mdso_asmgen_symentry.c +++ b/src/logic/mdso_asmgen_symentry.c @@ -13,7 +13,7 @@ static const char * const asm_lines[] = { "\t.section " MDSO_STRS_SECTION ",\"r0\"\n\n", - ".__dsostr_%s:\n", + ".symstr:\n", "\t.ascii\t\"%s\\0\"\n\n" "\t.section " MDSO_SYMS_SECTION ",\"r\"\n", 0 @@ -55,10 +55,10 @@ int mdso_asmgen_symentry( if ((fprintf(fout,"__imp_%s%s:\n",uscore,sym)) < 0) return MDSO_FILE_ERROR(dctx); - if ((fprintf(fout,"\t%s\t.__dsostr_%s\n",ptrsize,sym)) < 0) + if ((fprintf(fout,"\t%s\t.symstr\n",ptrsize)) < 0) return MDSO_FILE_ERROR(dctx); - if ((fprintf(fout,"\t%s\t.__dsometa_%s\n",ptrsize,dctx->cctx->libname)) < 0) + if ((fprintf(fout,"\t%s\t.dsometa_%s\n",ptrsize,dctx->cctx->libname)) < 0) return MDSO_FILE_ERROR(dctx); return 0; |