* dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
authorRichard Henderson <rth@redhat.com>
Thu, 5 Jun 2003 05:25:38 +0000 (05:25 +0000)
committerRichard Henderson <rth@redhat.com>
Thu, 5 Jun 2003 05:25:38 +0000 (05:25 +0000)
gas/ChangeLog
gas/dw2gencfi.c

index 83a80c0a88490c38a47a2fdce4d4a4af0f322990..8abacaef05ff6efdd658548cabd3ef763dd964bb 100644 (file)
@@ -1,3 +1,7 @@
+2003-06-04  Richard Henderson  <rth@redhat.com>
+
+       * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
+
 2003-06-04  Richard Henderson  <rth@redhat.com>
 
        * config/tc-alpha.c (s_alpha_usepv): New.
index a632cd1acce27f9171daf9f62da7f965d6f60750..76408a436e117a742c5d73627674f42e7b86d49a 100644 (file)
@@ -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);