summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-01-24 15:49:26 -0500
committermidipix <writeonce@midipix.org>2019-01-24 15:49:26 -0500
commit6612c3842b872a13291962e4744a8bffd0695d1a (patch)
treef90f4f3b4753a686e5f4a3dd3a752ecdfd3dce0b
parentf7145fe76191666496d14f907b903ae3e1f0604b (diff)
downloadmdso-6612c3842b.tar.bz2
mdso-6612c3842b.tar.xz
code vs. data: ld's incorrect .def generation: provide a temporary workaround.
-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++;