This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: eh_frame optimization for ld -r
- From: Jakub Jelinek <jakub at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 1 Nov 2002 13:50:34 +0100
- Subject: Re: eh_frame optimization for ld -r
- References: <20021101124401.GH967@bubble.sa.bigpond.net.au>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Nov 01, 2002 at 11:14:01PM +1030, Alan Modra wrote:
> Jakub,
> What do you think of the idea of discarding unused eh entries
> during ld -r? I'm floating the idea because currently a ld -r
> on C++ files seems to break eh info. On powerpc64-linux, ld -r
> gives a .rela.eh_frame containing relocs like:
>
> 000000000940 000000000026 R_PPC64_ADDR64 0000000000000000
>
> ie. against STN_UNDEF. These are from relocs against discarded
> linkonce sections. Unfortunately when doing a final link using
> such an object, reloc_symbol_deleted_p doesn't regard these as
> being deleted.
>
> Pruning eh_frame during ld -r would stop this problem happening,
Wouldn't it be better or at least easier to just consider such relocs
as being deleted for .eh_frame?
> and also cater for people who want to create linux kernel modules
> written in C++.
Bad idea ;/.
Jakub