diff options
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r-- | bfd/elf32-i386.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index ee1511f..eea2263 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -2488,13 +2488,13 @@ elf_i386_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED, { srel = elf_section_data (p->sec)->sreloc; srel->size += p->count * sizeof (Elf32_External_Rel); - if ((p->sec->output_section->flags & SEC_READONLY) != 0) + if ((p->sec->output_section->flags & SEC_READONLY) != 0 + && (info->flags & DF_TEXTREL) == 0) { info->flags |= DF_TEXTREL; if (info->warn_shared_textrel && info->shared) info->callbacks->einfo (_("%P: %B: warning: relocation in readonly section `%A'.\n"), p->sec->owner, p->sec); - break; } } } |