Don't check R_386_GOT32 when setting need_convert_load

Since we no longer convert R_386_GOT32, don't check R_386_GOT32 when
setting need_convert_load.

	* elf32-i386.c (elf_i386_check_relocs): Don't check R_386_GOT32
	when setting need_convert_load.
This commit is contained in:
H.J. Lu 2016-05-20 09:36:48 -07:00
parent a4968f42e7
commit 52bf37dd91
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-05-20 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_check_relocs): Don't check R_386_GOT32
when setting need_convert_load.
2016-05-20 Maciej W. Rozycki <macro@imgtec.com>
* elfxx-mips.c (mips_elf_read_rel_addend): Adjust the addend for

View File

@ -2256,7 +2256,7 @@ do_size:
goto error_return;
}
if ((r_type == R_386_GOT32 || r_type == R_386_GOT32X)
if (r_type == R_386_GOT32X
&& (h == NULL || h->type != STT_GNU_IFUNC))
sec->need_convert_load = 1;
}