This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] minor PIE update to elf32-hppa.c
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: binutils at sources dot redhat dot com
- Date: Tue, 27 Dec 2005 18:02:50 -0500 (EST)
- Subject: [committed] minor PIE update to elf32-hppa.c
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 dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
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.
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;