]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2011-12-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 22 Dec 2011 15:00:44 +0000 (15:00 +0000)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 22 Dec 2011 15:00:44 +0000 (15:00 +0000)
* elf32-s390.c (elf_s390_relocate_section): Add check for debugging
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 0619adbcd20b2c1d6770b22fc58f9664b5e0e3db..a7923bd6ba706c34408e089e2cddbb3e2671833e 100644 (file)
@@ -1,3 +1,10 @@
+2011-12-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
+
+       * elf32-s390.c (elf_s390_relocate_section): Add check for debugging
+       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.
+
 2011-12-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
        * elf32-arm.c (elf32_arm_nabi_grok_psinfo): Fill in core_pid.
index 2cfd53ee1b032b22230ade30d7116c5036faee5c..bb586708f372733f54e44c9a0b970191808b074b 100644 (file)
@@ -2862,7 +2862,7 @@ elf_s390_relocate_section (output_bfd, info, input_bfd, input_section,
          continue;
 
        case R_390_TLS_LDO32:
-         if (info->shared)
+         if (info->shared || (input_section->flags & SEC_DEBUGGING))
            relocation -= dtpoff_base (info);
          else
            /* When converting LDO to LE, we must negate.  */
index 7d3e8821d93843ae7834a5279ee5b73fafe985b1..06f96a409b95830fd632e6b69c1f58fe5f04dd9d 100644 (file)
@@ -2861,7 +2861,7 @@ elf_s390_relocate_section (bfd *output_bfd,
          continue;
 
        case R_390_TLS_LDO64:
-         if (info->shared)
+         if (info->shared || (input_section->flags & SEC_DEBUGGING))
            relocation -= dtpoff_base (info);
          else
            /* When converting LDO to LE, we must negate.  */