OSDN Git Service

2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl>
Fri, 1 Apr 2005 03:49:44 +0000 (03:49 +0000)
committerhjl <hjl>
Fri, 1 Apr 2005 03:49:44 +0000 (03:49 +0000)
commit55c34f8bf9678267ac206ed7921c5066efa3559f
tree0e8fdd4bab282b1dde81ae9a275a7e9a16a01146
parentf0dc52e3dc5afc7195b25a93898f7319d33e8127
2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>

* elf-bfd.h (_bfd_elf_check_kept_section): New.

* elf.c (assign_section_numbers): When sh_link points to a
discarded section, call _bfd_elf_check_kept_section to see if
the kept section can be used. Otherwise reject sh_link
pointing to discarded section.

* elflink.c (_bfd_elf_check_kept_section): New.
(elf_link_input_bfd): Use it.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf.c
bfd/elflink.c