diff options
author | Nick Clifton <nickc@redhat.com> | 2005-07-05 09:14:14 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-07-05 09:14:14 +0000 |
commit | 8532796c0c2672b002fbd464aaceacec4a1ca83c (patch) | |
tree | 8c29cf7697750ebe08a80682abc3ad5fe25c2a44 /bfd/elf32-arm.c | |
parent | 3012383869aefee12175ab4c8f5028449b4be4e9 (diff) | |
download | gdb-8532796c0c2672b002fbd464aaceacec4a1ca83c.zip gdb-8532796c0c2672b002fbd464aaceacec4a1ca83c.tar.gz gdb-8532796c0c2672b002fbd464aaceacec4a1ca83c.tar.bz2 |
(elf32_arm_size_dynamic_sections): Fix a typo and touchup logic like i386/ppc.
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r-- | bfd/elf32-arm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index e04029d..db872fa 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -5932,7 +5932,7 @@ elf32_arm_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; @@ -5965,10 +5965,9 @@ elf32_arm_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED, { if (!add_dynamic_entry (DT_TEXTREL, 0)) return FALSE; - info->flags |= DF_TEXTREL; } } -#undef add_synamic_entry +#undef add_dynamic_entry return TRUE; } |