This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Re: .eh_frame optimization question


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


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