S/390: Make .eh_frame in libffi read-only
Ulrich Weigand
Ulrich.Weigand@de.ibm.com
Wed Nov 27 12:43:00 GMT 2002
Hello,
now that the .eh_frame section can by default be read-only, this
patch makes the manually-coded .eh_frame section of the libffi
assembler file read-only as well; failing to do that would cause
the entire libffi (and libgcj) to keep a read-write section.
Bootstrapped/regtested on s390-ibm-linux and s390x-ibm-linux.
ChangeLog:
* src/s390/sysv.S (.eh_frame section): Make section read-only.
Index: libffi/src/s390/sysv.S
===================================================================
RCS file: /cvs/gcc/gcc/libffi/src/s390/sysv.S,v
retrieving revision 1.4
diff -c -p -r1.4 sysv.S
*** libffi/src/s390/sysv.S 15 Nov 2002 16:57:49 -0000 1.4
--- libffi/src/s390/sysv.S 26 Nov 2002 23:24:39 -0000
*************** ffi_closure_SYSV:
*** 146,152 ****
.size ffi_closure_SYSV,.ffi_closure_SYSV_end-ffi_closure_SYSV
! .section .eh_frame,"aw",@progbits
.Lframe1:
.4byte .LECIE1-.LSCIE1 # Length of Common Information Entry
.LSCIE1:
--- 146,152 ----
.size ffi_closure_SYSV,.ffi_closure_SYSV_end-ffi_closure_SYSV
! .section .eh_frame,"a",@progbits
.Lframe1:
.4byte .LECIE1-.LSCIE1 # Length of Common Information Entry
.LSCIE1:
*************** ffi_closure_SYSV:
*** 345,351 ****
! .section .eh_frame,"aw",@progbits
.Lframe1:
.4byte .LECIE1-.LSCIE1 # Length of Common Information Entry
.LSCIE1:
--- 345,351 ----
! .section .eh_frame,"a",@progbits
.Lframe1:
.4byte .LECIE1-.LSCIE1 # Length of Common Information Entry
.LSCIE1:
Mit freundlichen Gruessen / Best Regards
Ulrich Weigand
--
Dr. Ulrich Weigand
Linux for S/390 Design & Development
IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
Phone: +49-7031/16-3727 --- Email: Ulrich.Weigand@de.ibm.com
More information about the Gcc-patches
mailing list