From: Martin Schwidefsky Date: Wed, 20 Sep 2006 14:38:17 +0000 (+0000) Subject: * elf32-s390.c (elf_s390_relocate_section): Remove check for code X-Git-Tag: gdb_6_6-2006-11-15-branchpoint~439 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36c10a8ff3582413d06e87d993bfd02b6c115017;p=thirdparty%2Fbinutils-gdb.git * elf32-s390.c (elf_s390_relocate_section): Remove check for code section in LD to LE linker relaxation for R_390_TLS_LDO32. * elf64-s390.c (elf_s390_relocate_section): Likewise for R_390_TLS_LDO64. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8b5d2a24fe1..9602cf07010 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2006-09-20 Martin Schwidefsky + + * elf32-s390.c (elf_s390_relocate_section): Remove check for code + section in LD to LE linker relaxation for R_390_TLS_LDO32. + * elf64-s390.c (elf_s390_relocate_section): Likewise for + R_390_TLS_LDO64. + 2006-09-20 Kai Tietz * configure.in: Added new target-vectors x86_64coff_vec, diff --git a/bfd/elf32-s390.c b/bfd/elf32-s390.c index 7b3c2d3ade6..b887640640d 100644 --- a/bfd/elf32-s390.c +++ b/bfd/elf32-s390.c @@ -2927,7 +2927,7 @@ elf_s390_relocate_section (output_bfd, info, input_bfd, input_section, continue; case R_390_TLS_LDO32: - if (info->shared || (input_section->flags & SEC_CODE) == 0) + if (info->shared) relocation -= dtpoff_base (info); else /* When converting LDO to LE, we must negate. */ diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c index 05be62fb26f..da10f0c31fa 100644 --- a/bfd/elf64-s390.c +++ b/bfd/elf64-s390.c @@ -2909,7 +2909,7 @@ elf_s390_relocate_section (output_bfd, info, input_bfd, input_section, continue; case R_390_TLS_LDO64: - if (info->shared || (input_section->flags & SEC_CODE) == 0) + if (info->shared) relocation -= dtpoff_base (info); else /* When converting LDO to LE, we must negate. */