diff options
author | Nick Clifton <nickc@redhat.com> | 2005-07-04 13:54:36 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-07-04 13:54:36 +0000 |
commit | b9f0a2937c4ce08ee6a9352c76faccf79183934a (patch) | |
tree | 8f4b3aa8d250249837a335eccf5ad40261289ce0 /bfd/elf32-m32r.c | |
parent | 8dcbe60adda333bad5fdb8997d8224f9823a0e49 (diff) | |
download | binutils-redhat-b9f0a2937c4ce08ee6a9352c76faccf79183934a.tar.gz |
m32r-linux-ld support for position independent executables
Diffstat (limited to 'bfd/elf32-m32r.c')
-rw-r--r-- | bfd/elf32-m32r.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-m32r.c b/bfd/elf32-m32r.c index f798088f0d..6972ad30ca 100644 --- a/bfd/elf32-m32r.c +++ b/bfd/elf32-m32r.c @@ -2178,7 +2178,7 @@ m32r_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED, 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); @@ -2317,7 +2317,7 @@ m32r_elf_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; |