_bfd_elf_create_got_section .rela.got

_bfd_elf_create_got_section creates .rela.got or .rel.got before it
creates .got.  This normally isn't a problem, but in some tests that
use a script to map uninteresting sections to a .junk section, if it
happens to be the first section so mapped then .junk becomes RELA
rather than the usual PROGBITS.  Using a linker created dynobj makes
this more likely as the linker created bfd is put first on
link_info.input_bfds.

	* elflink.c (_bfd_elf_create_got_section): Create .rela.got/
	.rel.got later.
1 file changed