This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: .eh_frame optimization question
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jie Zhang <jzhang918 at gmail dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 3 Jan 2007 18:30:44 +1030
- Subject: Re: .eh_frame optimization question
- References: <6f48278f0612250659l837377bhc9212bbafdb203a7@mail.gmail.com> <20070101121700.GE4484@bubble.grove.modra.org> <459B5BC5.40603@gmail.com>
On Wed, Jan 03, 2007 at 03:31:17PM +0800, Jie Zhang wrote:
> Alan Modra wrote:
> >Other ports handle this situation by emitting an R_*_NONE reloc,
> >typically reloc number 0. Can you do the same?
> >
> >_bfd_elf_section_offset will return -1 or -2 to indicate that a
> >dynamic reloc is not needed.
> >
> Thanks for your reply. Actually, bfin port handles this situation as
> other ports.
I see _bfd_elf_section_offset invoked in an expression passed to
_bfinfdpic_add_dyn_reloc. No special handling for the case where
_bfd_elf_section_offset returns -1. You need to fix this.
--
Alan Modra
IBM OzLabs - Linux Technology Centre