diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-04-01 03:49:46 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-04-01 03:49:46 +0000 |
commit | 01b3c8abd1990d27f28e2b90d118fd259993d895 (patch) | |
tree | 1fdb1b1b7cb48e5570d1e70f3ccc44231bbd1540 /bfd/elf-bfd.h | |
parent | 35090471860b6c110a9090aba7ff901ec019de2b (diff) | |
download | gdb-01b3c8abd1990d27f28e2b90d118fd259993d895.zip gdb-01b3c8abd1990d27f28e2b90d118fd259993d895.tar.gz gdb-01b3c8abd1990d27f28e2b90d118fd259993d895.tar.bz2 |
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.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index a5047de..9d3871b 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 |