aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-sh.c
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2003-08-02 13:46:44 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2003-08-02 13:46:44 +0000
commit866f48b717574d0bcf220751e0626e60432eb207 (patch)
treedb11ff4d401f4e8c8627d178079d457b96b820f1 /bfd/elf32-sh.c
parentedf6a2322f3685e9e4ad54c5682e377553ef9c86 (diff)
downloadgdb-866f48b717574d0bcf220751e0626e60432eb207.zip
gdb-866f48b717574d0bcf220751e0626e60432eb207.tar.gz
gdb-866f48b717574d0bcf220751e0626e60432eb207.tar.bz2
* 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 39fb14c..5417865 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;
}