Hi,
In binutils I need to write an offset between two symbols shifted right by 2
bits. This offset is written to the xdata section. My
code currently looks like this:
exp.X_op = O_subtract;
exp.X_add_symbol = symbol1;
exp.X_op_symbol = symbol2;
emit_expr (&exp, 2);
This works fine but obviously the result value is not shifted. Anyone have a
good option is to shift the output of emit_expr at
write time?
I cannot use resolve_expression because the symbols do not have correct
addresses at the time this code executes.
Any help appreciated,
Zac
_______________________________________________
linaro-toolchain mailing list -- linaro-toolchain@lists.linaro.org
To unsubscribe send an email to linaro-toolchain-le...@lists.linaro.org