make .eh_frame read-only
Richard Henderson
rth@twiddle.net
Thu Jun 5 05:27:00 GMT 2003
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);
More information about the Binutils
mailing list