aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-06-23 23:39:39 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-06-23 23:39:39 +0000
commit6e35c4dafc6c4dcfa1f436a6cc143f1fb41f394a (patch)
tree1eb71b44446d47523bbe36ae73e7d794c82a287a /bfd/elflink.h
parentf125c9a4e90b18df4e6a582c2a16ce8b3a7dc697 (diff)
downloadgdb-6e35c4dafc6c4dcfa1f436a6cc143f1fb41f394a.zip
gdb-6e35c4dafc6c4dcfa1f436a6cc143f1fb41f394a.tar.gz
gdb-6e35c4dafc6c4dcfa1f436a6cc143f1fb41f394a.tar.bz2
2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
* elflink.h (elf_link_input_bfd): Check raw size when using kept_section to preserve debug information discarded by linkonce.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 4a7d27d..7568946 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -5042,7 +5042,7 @@ elf_link_input_bfd (finfo, input_bfd)
/* Try to preserve debug information. */
if ((o->flags & SEC_DEBUGGING) != 0
&& sec->kept_section != NULL
- && sec->_cooked_size == sec->kept_section->_cooked_size)
+ && sec->_raw_size == sec->kept_section->_raw_size)
h->root.u.def.section
= sec->kept_section;
else
@@ -5071,7 +5071,7 @@ elf_link_input_bfd (finfo, input_bfd)
/* Try to preserve debug information. */
if ((o->flags & SEC_DEBUGGING) != 0
&& sec->kept_section != NULL
- && sec->_cooked_size == sec->kept_section->_cooked_size)
+ && sec->_raw_size == sec->kept_section->_raw_size)
finfo->sections[r_symndx]
= sec->kept_section;
else