summaryrefslogtreecommitdiff
path: root/bfd/elf32-s390.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2011-12-22 15:00:40 +0000
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2011-12-22 15:00:40 +0000
commitba82be168ea201d0bb335edd7cbc0d965e93c6ad (patch)
tree0d1577191786baa4efb06affe2dc80f83300e935 /bfd/elf32-s390.c
parentc203e7775c56b6fea85663a9e1b759c176ccc42e (diff)
downloadbinutils-redhat-ba82be168ea201d0bb335edd7cbc0d965e93c6ad.tar.gz
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.
Diffstat (limited to 'bfd/elf32-s390.c')
-rw-r--r--bfd/elf32-s390.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-s390.c b/bfd/elf32-s390.c
index 2cfd53ee1b..bb586708f3 100644
--- a/bfd/elf32-s390.c
+++ b/bfd/elf32-s390.c
@@ -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. */