aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-sh.c
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2003-06-03 04:50:20 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2003-06-03 04:50:20 +0000
commit2558b9a9f0a3b38756ba4044c052de5e0f2be6cc (patch)
treec4f9e6547f4120f90fc89213f585b17487904fc4 /bfd/elf32-sh.c
parentaee8d8ba8a358d039327ad18a3041b5e3943086c (diff)
downloadgdb-2558b9a9f0a3b38756ba4044c052de5e0f2be6cc.zip
gdb-2558b9a9f0a3b38756ba4044c052de5e0f2be6cc.tar.gz
gdb-2558b9a9f0a3b38756ba4044c052de5e0f2be6cc.tar.bz2
* elf32-sh.c (sh_elf_size_dynamic_sections): Create .interp section
and DT_DEBUG dynamic tag even for position independent executables. * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewize.
Diffstat (limited to 'bfd/elf32-sh.c')
-rw-r--r--bfd/elf32-sh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index 4ff31bf..2042c34 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -4338,7 +4338,7 @@ sh_elf_size_dynamic_sections (output_bfd, info)
if (htab->root.dynamic_sections_created)
{
/* Set the contents of the .interp section to the interpreter. */
- if (! info->shared)
+ if (info->executable)
{
s = bfd_get_section_by_name (dynobj, ".interp");
BFD_ASSERT (s != NULL);
@@ -4500,7 +4500,7 @@ sh_elf_size_dynamic_sections (output_bfd, info)
#define add_dynamic_entry(TAG, VAL) \
bfd_elf32_add_dynamic_entry (info, (bfd_vma) (TAG), (bfd_vma) (VAL))
- if (! info->shared)
+ if (info->executable)
{
if (! add_dynamic_entry (DT_DEBUG, 0))
return FALSE;