x86: traverse loc_hash_table only if used

Traverse x86 loc_hash_table only if it is used.

	* elf32-i386.c (elf_i386_output_arch_local_syms): Traverse
	loc_hash_table only if has_loc_hash_table is set.
	* elf64-x86-64.c (elf_x86_64_output_arch_local_syms): Likewise.
	* elfxx-x86.c (_bfd_elf_x86_get_local_sym_hash): Set
	has_loc_hash_table.
	(_bfd_x86_elf_late_size_sections): Traverse loc_hash_table only
	if has_loc_hash_table is set.
	* elfxx-x86.h (elf_x86_link_hash_table): Move plt0_pad_byte and
	add has_loc_hash_table.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
4 files changed