summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/driver/mdso_unit_ctx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/driver/mdso_unit_ctx.c b/src/driver/mdso_unit_ctx.c
index c10a3ca..f7c4f83 100644
--- a/src/driver/mdso_unit_ctx.c
+++ b/src/driver/mdso_unit_ctx.c
@@ -176,6 +176,12 @@ static int mdso_create_symbol_vector(struct mdso_unit_ctx_impl * ctx)
? MDSO_SYMBOL_TYPE_DATA
: MDSO_SYMBOL_TYPE_CODE;
+ /* code vs. data: pending changes to the midipix gcc target */
+ /* bits will remove the need to create .text thunks; in the */
+ /* meantime, however, treat everything as code to compensate */
+ /* for ld's incorrectly generated .def files. */
+ stype = MDSO_SYMBOL_TYPE_CODE;
+
ctx->expsyms->stype[sym - ctx->expsyms->syms] = stype;
sym++;