This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: ld/1467: Orphaned section is put in the odd place
On Fri, Oct 14, 2005 at 07:57:46AM -0700, H. J. Lu wrote:
> bfd/
>
> 2005-10-14 H.J. Lu <hongjiu.lu@intel.com>
>
> PR ld/1467
> * elf-bfd.h (_bfd_elf_match_sections_by_type): New.
> (_bfd_generic_match_sections_by_type): New. Defined.
>
> * elf.c (_bfd_elf_match_sections_by_type): New.
>
> * libbfd-in.h (_bfd_generic_match_sections_by_type): New.
>
> * bfd-in2.h: Regenerated.
> * libbfd.h: Likewise.
>
> * libbfd.c (_bfd_generic_match_sections_by_type): New.
>
> * targets.c (BFD_JUMP_TABLE_LINK): Initialize
> _bfd_match_sections_by_type with
> _bfd_generic_match_sections_by_type.
> (bfd_target): Add _bfd_match_sections_by_type.
>
> ld/
>
> 2005-10-14 H.J. Lu <hongjiu.lu@intel.com>
>
> PR ld/1467
> * emultempl/elf32.em: Include "elf-bfd.h".
> (gld${EMULATION_NAME}_place_orphan): Check section type and
> don't use section name for ELF input sections.
>
> * ld.texinfo: Document orphan section processing.
>
> * ldlang.c (lang_output_section_find_by_flags): Match section
> types by calling bfd_match_sections_by_type.
Looks good to me.
--
Alan Modra
IBM OzLabs - Linux Technology Centre