OSDN Git Service

m32r-linux-ld support for position independent executables
authorNick Clifton <nickc@redhat.com>
Mon, 4 Jul 2005 13:54:36 +0000 (13:54 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 4 Jul 2005 13:54:36 +0000 (13:54 +0000)
bfd/ChangeLog
bfd/elf32-m32r.c

index 87d7ee4..91d214f 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-04  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
+
+       * elf32-m32r.c (m32r_elf_size_dynamic_sections): Use
+       info->executable instead of !info->shared where appropriate.
+
 2005-07-04  Alan Modra  <amodra@bigpond.net.au>
 
        PR 1042
index f798088..6972ad3 100644 (file)
@@ -2178,7 +2178,7 @@ m32r_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
   if (htab->root.dynamic_sections_created)
     {
       /* Set the contents of the .interp section to the interpreter.  */
-      if (! info->shared)
+      if (info->executable)
        {
          s = bfd_get_section_by_name (dynobj, ".interp");
          BFD_ASSERT (s != NULL);
@@ -2317,7 +2317,7 @@ m32r_elf_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;