* elf32-hppa.c (elf32_hppa_size_dynamic_sections): Use info->executable
authorDave Anglin <dave.anglin@nrc.ca>
Tue, 27 Dec 2005 22:50:08 +0000 (22:50 +0000)
committerDave Anglin <dave.anglin@nrc.ca>
Tue, 27 Dec 2005 22:50:08 +0000 (22:50 +0000)
instead of !info->shared.

bfd/ChangeLog
bfd/elf32-hppa.c

index 93a9ee1ab55e26334464228d682287018c8d7a32..263073df4eef94e4f9e3884cb009d60b2384d4c4 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Use info->executable
+       instead of !info->shared.
+
 2005-12-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
 
        * vaxlinux.h: New file. (TRAD_CORE_EXTRA_SIZE_ALLOWED): Define.
index 5d34558c361f245ef272e6a10ffdb5ae24e8b2a2..85352aaf9dcc1ced04825edaa65bb4202923ecb5 100644 (file)
@@ -2347,7 +2347,7 @@ elf32_hppa_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
         must add the entries now so that we get the correct size for
         the .dynamic section.  The DT_DEBUG entry is filled in by the
         dynamic linker and used by the debugger.  */
-      if (!info->shared)
+      if (info->executable)
        {
          if (!add_dynamic_entry (DT_DEBUG, 0))
            return FALSE;