This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: make .eh_frame read-only
On Thu, Jun 05, 2003 at 10:45:11PM -0400, Hans-Peter Nilsson wrote:
> Unless "I have no ideas what I'm talking about", on some
> architectures there'll still have to be run-time relocations for
> DSO:s there, so forcing read-only for all would be wrong; that'd
> force DT_TEXTREL for those targets.
Nope. Elsewhere I unconditionally force pc-relative relocations:
out_one (DW_EH_PE_pcrel | DW_EH_PE_sdata4);
...
exp.X_add_symbol = fde->start_address;
exp.X_op_symbol = symbol_temp_new_now ();
emit_expr (&exp, 4); /* Code offset */
Which will be completely fixed up at link time.
r~