summaryrefslogtreecommitdiff
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-02-03 23:21:54 -0500
committermidipix <writeonce@midipix.org>2019-02-04 00:43:59 -0500
commit8535b67a7dbd5bb2e8c4e529c20ec8076b5cc27c (patch)
tree013eeed4634f35720499814c14fbbc6f9e353a5b /src/logic
parent6612c3842b872a13291962e4744a8bffd0695d1a (diff)
downloadmdso-8535b67a7dbd5bb2e8c4e529c20ec8076b5cc27c.tar.bz2
mdso-8535b67a7dbd5bb2e8c4e529c20ec8076b5cc27c.tar.xz
Remove all bits pertaining to the obsolete distinction between code and data.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/mdso_asmgen_symfn.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/logic/mdso_asmgen_symfn.c b/src/logic/mdso_asmgen_symfn.c
deleted file mode 100644
index e63ec5d..0000000
--- a/src/logic/mdso_asmgen_symfn.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************/
-/* mdso: midipix dso scavenger */
-/* Copyright (C) 2015--2017 Z. Gilboa */
-/* Released under GPLv2 and GPLv3; see COPYING.MDSO. */
-/****************************************************************/
-
-#include <stdint.h>
-#include <stdio.h>
-
-#include <mdso/mdso.h>
-#include "mdso_dprintf_impl.h"
-#include "mdso_errinfo_impl.h"
-
-static const char * const asm_lines[] = {
- "\t.section .text\n",
- "\t.globl %s%s\n",
- "\t.def %s%s; .scl 2; .type 32; .endef\n\n",
-
- "%s%s:\n",
- "\tjmp *__imp_%s%s\n\n",
- 0
-};
-
-int mdso_asmgen_symfn(
- const struct mdso_driver_ctx * dctx,
- const char * sym,
- int fdout)
-{
- const char * const * line;
- const char * uscore;
-
- if (mdso_dprintf(fdout,"\t.file \".%s_symfn.s\"\n",sym) < 0)
- return MDSO_FILE_ERROR(dctx);
-
- uscore = (dctx->cctx->drvflags & MDSO_DRIVER_QUAD_PTR)
- ? "" : "_";
-
- for (line=asm_lines; *line; line++)
- if (mdso_dprintf(fdout,*line,uscore,sym) < 0)
- return MDSO_FILE_ERROR(dctx);
-
- return 0;
-}