summaryrefslogtreecommitdiff
path: root/bfd/elf32-sh.c
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2003-08-02 13:46:43 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2003-08-02 13:46:43 +0000
commit78e20a62539e4fbc5f6b6dfce8f9df3065a753ee (patch)
tree4d5bd9244018104e9d8dd4c9d139fec9496e4009 /bfd/elf32-sh.c
parent412986c5ace18d6581f9172a90213757bf01a366 (diff)
downloadgdb-78e20a62539e4fbc5f6b6dfce8f9df3065a753ee.tar.gz
* elf32-sh.c (sh_elf_check_relocs): Don't set DF_TEXTREL here.
* ld-sh/shared-2.d, ld-sh/textrel1.s, ld-sh/textrel2.s: New test.
Diffstat (limited to 'bfd/elf32-sh.c')
-rw-r--r--bfd/elf32-sh.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index 39fb14c6a1a..541786581d6 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -6497,8 +6497,6 @@ sh_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
sreloc, 2))
return FALSE;
}
- if (sec->flags & SEC_READONLY)
- info->flags |= DF_TEXTREL;
elf_section_data (sec)->sreloc = sreloc;
}