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: PATCH: ld/2537: Linker doesn't allow sections reserved for applications.


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


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