[PATCH] libffi .eh_frame tweaks

Jakub Jelinek jakub@redhat.com
Mon Apr 28 11:05:00 GMT 2003


On Mon, Apr 28, 2003 at 12:01:14PM +0100, Andrew Haley wrote:
> Jakub Jelinek writes:
>  > Hi!
>  > 
>  > The following patch makes IA-32 and PPC32 libffi .eh_frame PC-relative if
>  > -fpic/-fPIC/-mrelocatable, so that ld can create FDE lookup table in
>  > .eh_frame_hdr section and also makes the .eh_frame section's attributes
>  > match those emitted by gcc (so that libgcj.so's .eh_frame section can go
>  > into read-only segment if linker supports that).
> 
> Nice.
> 
> One question.  What is the point of the non-PIC version of this info?

Mainly consistency with what gcc generates. If the CIEs use the same
augmentation, they can be merged together by the linker, while if they
are different, it cannot be optimized out.
Also, the non-PC-relative .eh_frame is a few bytes shorter.

	Jakub



More information about the Java-patches mailing list