make .eh_frame read-only
Hans-Peter Nilsson
hp@bitrange.com
Fri Jun 6 02:45:00 GMT 2003
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
More information about the Binutils
mailing list