Fix locally resolved R_ARC_GOTPC32.

Cherry pick 25bcc6b6fd9997567b9458915a036f723b825e0e from branch
joern-arc2.23-tls.

bfd/Changelog.ARC:

        * elf32-arc.c (elf_arc_relocate_section): Calculate relocation for
	locally resolved R_ARC_GOTPC32.
Verify that we are changing a load.

Cherry pick commit 23351d963cd2494469950baa5fcf36f35c582ab2 from branch
joern-arc2.23-tls.

bfd/ChangeLog.ARC:

	* elf32-arc.c (arc_tls_transition) <R_ARC_TLS_IE_GOT -> GOT_TLS_LE>:
	Verify that we are changing a load.