PATCH: ld/2537: Linker doesn't allow sections reserved for applications.

Alan Modra amodra@bigpond.net.au
Fri Apr 21 08:32:00 GMT 2006


On Thu, Apr 20, 2006 at 08:36:47AM -0700, H. J. Lu wrote:
> 2006-04-18  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	PR ld/2537
> 	* elf.c (bfd_section_from_shdr): Allow sections reserved for
> 	applications. Issue an error on sections we don't know how
> 	to handle.

OK.  There is a potential future problem here if we ever have two
targets that use the same ELF header but have different
elf_backend_section_from_shdr functions.  BFD might try the wrong target
vector first and issue an inappropriate error message.  Note that the
place where we could check OSABI, elf_backend_object_p, is called
*after* bfd_section_from_shdr is called for all the sections, in order
to tweak the bfd sections.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list