This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

S/390: Make .eh_frame in libffi read-only


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


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