x86: TLS desc call relocs target zero-size fields

These are marker relocations, so together with their bit size being zero
their byte size should be zero as well. This is expressed by a value of
3, not 0.
This commit is contained in:
Jan Beulich 2021-04-23 09:18:48 +02:00
parent a9aabc23ef
commit c21346c5e2
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2021-04-23 Jan Beulich <jbeulich@suse.com>
* elf32-i386.c (elf_howto_table): R_386_TLS_DESC_CALL has zero
size field.
* elf64-x86-64.c (x86_64_elf_howto_table): R_X86_64_TLSDESC_CALL
has zero size field.
2021-04-22 Clément Chigot <clement.chigot@atos.net>
* hash.c (struct bfd_strtab_hash): Remove xcoff field.

View File

@ -130,7 +130,7 @@ static reloc_howto_type elf_howto_table[]=
HOWTO(R_386_TLS_GOTDESC, 0, 2, 32, false, 0, complain_overflow_bitfield,
bfd_elf_generic_reloc, "R_386_TLS_GOTDESC",
true, 0xffffffff, 0xffffffff, false),
HOWTO(R_386_TLS_DESC_CALL, 0, 0, 0, false, 0, complain_overflow_dont,
HOWTO(R_386_TLS_DESC_CALL, 0, 3, 0, false, 0, complain_overflow_dont,
bfd_elf_generic_reloc, "R_386_TLS_DESC_CALL",
false, 0, 0, false),
HOWTO(R_386_TLS_DESC, 0, 2, 32, false, 0, complain_overflow_bitfield,

View File

@ -146,7 +146,7 @@ static reloc_howto_type x86_64_elf_howto_table[] =
complain_overflow_bitfield, bfd_elf_generic_reloc,
"R_X86_64_GOTPC32_TLSDESC",
false, 0xffffffff, 0xffffffff, true),
HOWTO(R_X86_64_TLSDESC_CALL, 0, 0, 0, false, 0,
HOWTO(R_X86_64_TLSDESC_CALL, 0, 3, 0, false, 0,
complain_overflow_dont, bfd_elf_generic_reloc,
"R_X86_64_TLSDESC_CALL",
false, 0, 0, false),