diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2013-10-08 15:57:24 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2013-10-08 15:57:24 +0000 |
commit | 5bb7df2edfeb80282ce424bc0d32f07713e24220 (patch) | |
tree | 309a81aa08cf0ffd5c94b9a0f45513e2da89f881 /bfd | |
parent | cecf14249d7bfbdc56a358b187ecb0f93798842b (diff) | |
download | gdb-5bb7df2edfeb80282ce424bc0d32f07713e24220.zip gdb-5bb7df2edfeb80282ce424bc0d32f07713e24220.tar.gz gdb-5bb7df2edfeb80282ce424bc0d32f07713e24220.tar.bz2 |
* elf32-m68k.c (elf_m68k_size_dynamic_sections): Add DT_DEBUG also
for PIE executables.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-m68k.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ad29108..c5d9827 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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. diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c index b72bc83..f266d63 100644 --- a/bfd/elf32-m68k.c +++ b/bfd/elf32-m68k.c @@ -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; |