aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-10-16 15:51:38 +0000
committerBob Wilson <bob.wilson@acm.org>2007-10-16 15:51:38 +0000
commit1dd2625faae022a3bc2b37d79102563d430e19de (patch)
tree8edfa0908b37456b9867c41438e92d4e092b8ba8
parent8bc9c89276b610c8688f2b350178e1fc4900fb74 (diff)
downloadfsf-binutils-gdb-1dd2625faae022a3bc2b37d79102563d430e19de.zip
fsf-binutils-gdb-1dd2625faae022a3bc2b37d79102563d430e19de.tar.gz
fsf-binutils-gdb-1dd2625faae022a3bc2b37d79102563d430e19de.tar.bz2
* elflink.c (_bfd_elf_check_kept_section): Use the section rawsize
values if they are set.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 955877d..ef84265 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 49d75b0..e2dfcef 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -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;
}