From de8bee766b6bf227b4fd9cd65f64c8c64795760a Mon Sep 17 00:00:00 2001 From: Martin Schwidefsky Date: Thu, 22 Dec 2011 15:00:44 +0000 Subject: 2011-12-22 Martin Schwidefsky * 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/elf64-s390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/elf64-s390.c') diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c index 7d3e882..06f96a4 100644 --- a/bfd/elf64-s390.c +++ b/bfd/elf64-s390.c @@ -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. */ -- cgit v1.1