summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2012-08-31 19:45:34 +0000
committerkettenis <kettenis@openbsd.org>2012-08-31 19:45:34 +0000
commitf2a933ee1d18c670d1c85af9180eadc6b42ae29f (patch)
tree6f6e2d6425fbb4c4dbd7edad0fefdfda58ffed54
parentSince _dl_debug_map is only initialized if we see a DT_DEBUG tag, make sure (diff)
downloadwireguard-openbsd-f2a933ee1d18c670d1c85af9180eadc6b42ae29f.tar.xz
wireguard-openbsd-f2a933ee1d18c670d1c85af9180eadc6b42ae29f.zip
Add a DT_DEBUG tag to PIEs as well.
ok pascal@
-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;