From: Alan Modra Date: Thu, 14 Jul 2011 06:22:57 +0000 (+0000) Subject: * linker.c (_bfd_generic_section_already_linked): Set l_flags. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbde55ab5d30a4c44d84301527417bbef611eeef;p=binutils-gdb.git * linker.c (_bfd_generic_section_already_linked): Set l_flags. * elf-bfd.h (struct already_linked): Forward declare. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0d70d2d598d..cec63cd872d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2011-07-14 Alan Modra + + * linker.c (_bfd_generic_section_already_linked): Set l_flags. + * elf-bfd.h (struct already_linked): Forward declare. + 2011-07-14 Alan Modra * elflink.c (_bfd_elf_fix_symbol_flags): Loop on indirect syms. diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 08da2aeed80..bf63ee8a13e 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1797,6 +1797,7 @@ extern bfd_boolean _bfd_elf_match_sections_by_type (bfd *, const asection *, bfd *, const asection *); extern bfd_boolean bfd_elf_is_group_section (bfd *, const struct bfd_section *); +struct already_linked; extern void _bfd_elf_section_already_linked (bfd *, struct already_linked *, struct bfd_link_info *); extern void bfd_elf_set_group_contents diff --git a/bfd/linker.c b/bfd/linker.c index 492e77404d1..8700c05a590 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -3057,6 +3057,7 @@ _bfd_generic_section_already_linked (bfd *abfd, { l_sec = l->linked.u.sec; l_owner = l_sec->owner; + l_flags = l_sec->flags; l_comdat = bfd_coff_get_comdat_section (l_sec->owner, l_sec); }