[committed] minor PIE update to elf32-hppa.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[committed] minor PIE update to elf32-hppa.c

John David Anglin-4
This change adds a small bit from the original PIE patch
(http://sourceware.org/ml/binutils/2003-05/msg00832.html)
that was missed when PIE support was added to this file.

Dave
--
J. David Anglin                                  [hidden email]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2005-12-27  John David Anglin  <[hidden email]>

        * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Use info->executable
        instead of !info->shared.

Index: elf32-hppa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-hppa.c,v
retrieving revision 1.140
diff -u -3 -p -r1.140 elf32-hppa.c
--- elf32-hppa.c 25 Oct 2005 16:19:06 -0000 1.140
+++ elf32-hppa.c 27 Dec 2005 22:37:27 -0000
@@ -2347,7 +2347,7 @@ elf32_hppa_size_dynamic_sections (bfd *o
  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;