This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: S/390: Avoid relocations in .eh_frame section
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ulrich Weigand <weigand at immd1 dot informatik dot uni-erlangen dot de>
- Cc: Richard Henderson <rth at redhat dot com>, dje at watson dot ibm dot com, gcc-patches at gcc dot gnu dot org, uweigand at de dot ibm dot com
- Date: Wed, 20 Nov 2002 16:30:20 -0500
- Subject: Re: S/390: Avoid relocations in .eh_frame section
- References: <20021119173145.O27455@devserv.devel.redhat.com> <200211201958.UAA07895@faui11.informatik.uni-erlangen.de>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Nov 20, 2002 at 08:58:03PM +0100, Ulrich Weigand wrote:
> > Well, there is of course also the possibility to move the work
> > to the linker optimization, ie. start with DW_EH_PE_sdata8 | DW_EH_PE_pcrel
> > and if linker sees the shared library or binary is smaller than 2GB,
> > rewrite it into DW_EH_PE_sdata4 | DW_EH_PE_pcrel.
> > In fact this would be a IMO good idea for all 64-bit arches.
>
> I like this idea much better ;-) Would this is be a common-code
> optimization in binutils or platform-dependent?
Common code. Shouldn't be too hard, will look at it soon.
Jakub