This is the mail archive of the binutils@sources.redhat.com 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: PATCH: Fix alpha relocation overflow (Re: PATCH: Add _bfd_elf_provide_symbol)


On Mon, May 02, 2005 at 06:35:28PM -0700, H. J. Lu wrote:
> > I think this is a rather horrible hack.  Can't you do this some way that
> > avoids the potentially slow section list traversal?  How about defining
> > __init_fini_array in the linker script, and using its value instead?
> > (Default to zero if __init_fini_array isn't defined.)
> 
> That function is used to avoid __init_fini_array in the linker script. 

No, it's to avoid a symbol defined inside an output section.  I'm
suggesting a symbol defined like

  __init_fini_array = .;
  .preinit_array   ${RELOCATING-0} : { KEEP (*(.preinit_array)) }
  .init_array   ${RELOCATING-0} : { KEEP (*(.init_array)) }
  .fini_array   ${RELOCATING-0} : { KEEP (*(.fini_array)) }

-- 
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]