(elf32_arm_size_dynamic_sections): Fix a typo and touchup logic like i386/ppc.
authorNick Clifton <nickc@redhat.com>
Tue, 5 Jul 2005 09:14:14 +0000 (09:14 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 5 Jul 2005 09:14:14 +0000 (09:14 +0000)
bfd/ChangeLog
bfd/elf32-arm.c

index b736ff139d7cb471400c657cd99b6fae8e19cdfc..4de5945e1b289b630da8e7b98e0ccb6cabff0f23 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-05  Peter S. Mazinger <ps.m@gmx.net>
+
+       * elf32-arm.c (elf32_arm_size_dynamic_sections): Fix a typo and
+       touchup logic like i386/ppc.
+
 2005-07-05  Alan Modra  <amodra@bigpond.net.au>
 
        * elf.c (special_sections): Move const qualifier.
index e04029d8b922dbbcc7a6cda657d191bb3679b2ad..db872fad14adceac9ba25ff3defc877879f4a359 100644 (file)
@@ -5932,7 +5932,7 @@ elf32_arm_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED,
 #define add_dynamic_entry(TAG, VAL) \
   _bfd_elf_add_dynamic_entry (info, TAG, VAL)
 
-      if (!info->shared)
+     if (info->executable)
        {
          if (!add_dynamic_entry (DT_DEBUG, 0))
            return FALSE;
@@ -5965,10 +5965,9 @@ elf32_arm_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED,
        {
          if (!add_dynamic_entry (DT_TEXTREL, 0))
            return FALSE;
-         info->flags |= DF_TEXTREL;
        }
     }
-#undef add_synamic_entry
+#undef add_dynamic_entry
 
   return TRUE;
 }