* elf32-m68k.c (elf_m68k_size_dynamic_sections): Add DT_DEBUG also
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 8 Oct 2013 15:57:24 +0000 (15:57 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 8 Oct 2013 15:57:24 +0000 (15:57 +0000)
for PIE executables.

bfd/ChangeLog
bfd/elf32-m68k.c

index ad29108ea800bb1e371da1c74a0e803664e16625..c5d98271d1948c1a6bf6e1a4dcfb5fd6c30c0b0a 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-08  Andreas Schwab  <schwab@suse.de>
+
+       * elf32-m68k.c (elf_m68k_size_dynamic_sections): Add DT_DEBUG also
+       for PIE executables.
+
 2013-10-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
 
        * configure: Regenerate.
index b72bc83cd6adc19bad0d95613c29816921ea1a09..f266d63a150d4f8e4327e00b15a6bd91e541ce5d 100644 (file)
@@ -1,6 +1,6 @@
 /* Motorola 68k series support for 32-bit ELF
    Copyright 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
-   2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
+   2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -3367,7 +3367,7 @@ elf_m68k_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
 #define add_dynamic_entry(TAG, VAL) \
   _bfd_elf_add_dynamic_entry (info, TAG, VAL)
 
-      if (!info->shared)
+      if (info->executable)
        {
          if (!add_dynamic_entry (DT_DEBUG, 0))
            return FALSE;
This page took 0.028993 seconds and 4 git commands to generate.