OSDN Git Service

2009-11-17 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl>
Wed, 18 Nov 2009 07:31:40 +0000 (07:31 +0000)
committerhjl <hjl>
Wed, 18 Nov 2009 07:31:40 +0000 (07:31 +0000)
PR ld/10955
* elfxx-ia64.c (elfNN_ia64_update_short_info): Also skip ABS
sections.

bfd/ChangeLog
bfd/elfxx-ia64.c

index 09a5477..88c1e45 100644 (file)
@@ -1,6 +1,12 @@
 2009-11-17  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/10955
+       * elfxx-ia64.c (elfNN_ia64_update_short_info): Also skip ABS
+       sections.
+
+2009-11-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/10955
        * elfxx-ia64.c (elfNN_ia64_link_hash_table): Update comments.
        (elfNN_ia64_update_short_info): Remove "->output_section" from
        ia64_info->max_short_sec and ia64_info->min_short_sec.
index ed105c8..420a0ef 100644 (file)
@@ -764,8 +764,9 @@ static void
 elfNN_ia64_update_short_info (asection *sec, bfd_vma offset,
                              struct elfNN_ia64_link_hash_table *ia64_info)
 {
-  /* Skip SHF_IA_64_SHORT sections.  */
-  if (sec->flags & SEC_SMALL_DATA)
+  /* Skip ABS and SHF_IA_64_SHORT sections.  */
+  if (sec == bfd_abs_section_ptr
+      || (sec->flags & SEC_SMALL_DATA) != 0)
     return;
 
   if (!ia64_info->min_short_sec)