This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]