This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: make .eh_frame read-only
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 5 Jun 2003 22:45:11 -0400 (EDT)
- Subject: Re: make .eh_frame read-only
On Wed, 4 Jun 2003, Richard Henderson wrote:
> All this data is read-only; make sure ld puts it into the proper segment.
> * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
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. I suggest instead a target
macro, by default
#define TC_EH_FRAME_SECTION_FLAGS (SEC_ALLOC | SEC_LOAD | SEC_DATA | SEC_READONLY)
brgds, H-P