x86: Add elf_x86_allocate_local_got_info
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Jan 2022 21:14:20 +0000 (13:14 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Jan 2022 21:22:31 +0000 (13:22 -0800)
commitbbdeb108d81cd0430d93cd93dbeaa8b4d24a96db
tree04057a8135df8dcffa9bcfd7e3dde276d85aec9c
parent39fb369834a39e80d9bee9c55f029c543a7d797c
x86: Add elf_x86_allocate_local_got_info

Add elf_x86_allocate_local_got_info to allocate x86 GOT info for local
symbols.

* elf32-i386.c (elf_i386_check_relocs): Call
elf_x86_allocate_local_got_info.
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
* elfxx-x86.h (elf_x86_allocate_local_got_info): New.
bfd/elf32-i386.c
bfd/elf64-x86-64.c
bfd/elfxx-x86.h