diff options
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf32-i386.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ebc5e18..7d65340 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2011-04-08 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/12654 + * elf32-i386.c (elf_i386_relocate_section): Check !executable + instead of shared for R_386_TLS_LDO_32. + 2011-04-08 Tristan Gingold <gingold@adacore.com> * Makefile.am (SOURCE_HFILES): Remove xcoff-target.h diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 693c8e8..1b76cb4 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -4025,7 +4025,7 @@ elf_i386_relocate_section (bfd *output_bfd, break; case R_386_TLS_LDO_32: - if (info->shared || (input_section->flags & SEC_CODE) == 0) + if (!info->executable || (input_section->flags & SEC_CODE) == 0) relocation -= elf_i386_dtpoff_base (info); else /* When converting LDO to LE, we must negate. */ |