From 6612c3842b872a13291962e4744a8bffd0695d1a Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 24 Jan 2019 15:49:26 -0500 Subject: code vs. data: ld's incorrect .def generation: provide a temporary workaround. --- src/driver/mdso_unit_ctx.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/driver') 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++; -- cgit v1.2.3