forked from Imagelibrary/binutils-gdb
* elflink.c (_bfd_elf_check_kept_section): Use the section rawsize
values if they are set.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2007-10-16 Bob Wilson <bob.wilson@acm.org>
|
||||
|
||||
* elflink.c (_bfd_elf_check_kept_section): Use the section rawsize
|
||||
values if they are set.
|
||||
|
||||
2007-10-16 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 5146
|
||||
|
||||
@@ -8786,7 +8786,9 @@ _bfd_elf_check_kept_section (asection *sec, struct bfd_link_info *info)
|
||||
{
|
||||
if ((kept->flags & SEC_GROUP) != 0)
|
||||
kept = match_group_member (sec, kept, info);
|
||||
if (kept != NULL && sec->size != kept->size)
|
||||
if (kept != NULL
|
||||
&& ((sec->rawsize != 0 ? sec->rawsize : sec->size)
|
||||
!= (kept->rawsize != 0 ? kept->rawsize : kept->size)))
|
||||
kept = NULL;
|
||||
sec->kept_section = kept;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user