From e629041a1d172b0083ec86de223c54e038cc4edb Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 1 Apr 2005 03:49:46 +0000 Subject: 2005-03-31 H.J. Lu * 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/elf-bfd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bfd/elf-bfd.h') diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index a5047de7a6..9d3871b043 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1441,6 +1441,8 @@ extern void _bfd_elf_section_already_linked (bfd *, struct bfd_section *); extern void bfd_elf_set_group_contents (bfd *, asection *, void *); +extern asection *_bfd_elf_check_kept_section + (asection *); extern void _bfd_elf_link_just_syms (asection *, struct bfd_link_info *); extern bfd_boolean _bfd_elf_copy_private_header_data -- cgit v1.2.1