mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-01 08:54:44 +08:00
* elf32-sh.c (sh_elf_relocate_section): Allow R_SH_TLS_LE_32 for PIE.
(sh_elf_check_relocs): Likewise.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-06-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
||||||
|
|
||||||
|
* elf32-sh.c (sh_elf_relocate_section): Allow R_SH_TLS_LE_32 for PIE.
|
||||||
|
(sh_elf_check_relocs): Likewise.
|
||||||
|
|
||||||
2011-06-22 Richard Henderson <rth@redhat.com>
|
2011-06-22 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* elf64-alpha.c (elf64_alpha_check_relocs): No dynamic reloc for
|
* elf64-alpha.c (elf64_alpha_check_relocs): No dynamic reloc for
|
||||||
|
@ -5516,7 +5516,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
|
|||||||
|
|
||||||
check_segment[0] = check_segment[1] = -1;
|
check_segment[0] = check_segment[1] = -1;
|
||||||
|
|
||||||
if (! info->shared)
|
if (! info->shared || info->pie)
|
||||||
{
|
{
|
||||||
relocation = tpoff (info, relocation);
|
relocation = tpoff (info, relocation);
|
||||||
addend = rel->r_addend;
|
addend = rel->r_addend;
|
||||||
@ -6614,7 +6614,7 @@ sh_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case R_SH_TLS_LE_32:
|
case R_SH_TLS_LE_32:
|
||||||
if (info->shared)
|
if (info->shared && !info->pie)
|
||||||
{
|
{
|
||||||
(*_bfd_error_handler)
|
(*_bfd_error_handler)
|
||||||
(_("%B: TLS local exec code cannot be linked into shared objects"),
|
(_("%B: TLS local exec code cannot be linked into shared objects"),
|
||||||
|
Reference in New Issue
Block a user