This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
make .eh_frame read-only
- From: Richard Henderson <rth at twiddle dot net>
- To: binutils at sources dot redhat dot com
- Date: Wed, 4 Jun 2003 22:27:06 -0700
- Subject: make .eh_frame read-only
All this data is read-only; make sure ld puts it into the proper segment.
r~
* dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
Index: dw2gencfi.c
===================================================================
RCS file: /cvs/src/src/gas/dw2gencfi.c,v
retrieving revision 1.7
diff -c -p -d -u -r1.7 dw2gencfi.c
--- dw2gencfi.c 2 Jun 2003 22:48:59 -0000 1.7
+++ dw2gencfi.c 5 Jun 2003 05:24:47 -0000
@@ -785,7 +785,7 @@ cfi_finish (void)
cfi_seg = subseg_new (".eh_frame", 0);
#ifdef BFD_ASSEMBLER
bfd_set_section_flags (stdoutput, cfi_seg,
- SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_DATA);
+ SEC_ALLOC | SEC_LOAD | SEC_DATA | SEC_READONLY);
#endif
subseg_set (cfi_seg, 0);
record_alignment (cfi_seg, 2);