]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elf32-s390.c (elf_s390_relocate_section): Remove check for code
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 20 Sep 2006 14:38:17 +0000 (14:38 +0000)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 20 Sep 2006 14:38:17 +0000 (14:38 +0000)
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.

bfd/ChangeLog
bfd/elf32-s390.c
bfd/elf64-s390.c

index 8b5d2a24fe13eb152a3b3049a85d2a433536d4c0..9602cf070107e8e2947bc912843f7e869360c3b8 100644 (file)
@@ -1,3 +1,10 @@
+2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
+
+       * 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  <Kai.Tietz@onevision.com>
 
        * configure.in: Added new target-vectors x86_64coff_vec,
index 7b3c2d3ade6019f13b54b6277291f6fd0cd1b951..b887640640d01865d5f40955d22a1948adeddab4 100644 (file)
@@ -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.  */
index 05be62fb26f3461815288fc95b1ab7a20dece344..da10f0c31fa5a271514ac811f6268082176f9835 100644 (file)
@@ -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.  */