projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bc9c89
)
* elflink.c (_bfd_elf_check_kept_section): Use the section rawsize
author
Bob Wilson
<bob.wilson@acm.org>
Tue, 16 Oct 2007 15:51:38 +0000
(15:51 +0000)
committer
Bob Wilson
<bob.wilson@acm.org>
Tue, 16 Oct 2007 15:51:38 +0000
(15:51 +0000)
values if they are set.
bfd/ChangeLog
patch
|
blob
|
history
bfd/elflink.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 955877df951b4b426597c05110ec121d821e3fb8..ef8426594aebb1f3b19f45e9b12095f5938f4f96 100644
(file)
--- 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 49d75b03e0e8fb2368eb9777359974321e4d7bc7..e2dfcefb0915eacfc7750bbd88eb2861bb3db143 100644
(file)
--- 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;
}