summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2012-08-31 19:45:35 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2012-08-31 19:45:35 +0000
commitf3b97dbc2d55e31fc4bf1ca33b03bbc556b0be59 (patch)
tree7907427f86dfb1304e994f6c05ac35fa16133e52 /gnu/usr.bin
parent422ddc23c4e88892762a10dd2ec29b43ff3b98ab (diff)
Add a DT_DEBUG tag to PIEs as well.
ok pascal@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/binutils/bfd/elf32-hppa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/bfd/elf32-hppa.c b/gnu/usr.bin/binutils/bfd/elf32-hppa.c
index e8905ea1738..d9171688111 100644
--- a/gnu/usr.bin/binutils/bfd/elf32-hppa.c
+++ b/gnu/usr.bin/binutils/bfd/elf32-hppa.c
@@ -2238,7 +2238,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;