aboutsummaryrefslogtreecommitdiff
path: root/gas/dw2gencfi.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-06-05 05:25:38 +0000
committerRichard Henderson <rth@redhat.com>2003-06-05 05:25:38 +0000
commit757bc39371648891e9187f0f32f2b76a5464666a (patch)
treefb05d2220ccebb045639de3be1aa49b9e327a633 /gas/dw2gencfi.c
parentf4b97536ed71fbe05b8b0886d63f5ea2c4c66ae8 (diff)
downloadgdb-757bc39371648891e9187f0f32f2b76a5464666a.zip
gdb-757bc39371648891e9187f0f32f2b76a5464666a.tar.gz
gdb-757bc39371648891e9187f0f32f2b76a5464666a.tar.bz2
* dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
Diffstat (limited to 'gas/dw2gencfi.c')
-rw-r--r--gas/dw2gencfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c
index a632cd1..76408a4 100644
--- a/gas/dw2gencfi.c
+++ b/gas/dw2gencfi.c
@@ -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);