[binutils-gdb] Convert mov to lea only if needed

sergiodj+buildbot@redhat.com sergiodj+buildbot@redhat.com
Sat Feb 28 14:41:00 GMT 2015


*** TEST RESULTS FOR COMMIT c1d11331c9d84541b5002314f8cee2f302dd5763 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: c1d11331c9d84541b5002314f8cee2f302dd5763

Convert mov to lea only if needed
We can convert mov to lea only if there are R_386_GOT32/R_X86_64_GOTPCREL
relocations against non IFUNC symbols.

	* elf32-i386.c (need_convert_mov_to_lea): New.
	(elf_i386_check_relocs): Set need_convert_mov_to_lea if needed.
	(elf_i386_convert_mov_to_lea): Return TRUE if
	need_convert_mov_to_lea is unset.
	* elf64-x86-64.c (need_convert_mov_to_lea): New.
	(elf_x86_64_check_relocs): Set need_convert_mov_to_lea if needed.
	(elf_x86_64_convert_mov_to_lea): Return TRUE if
	need_convert_mov_to_lea is unset.



More information about the Gdb-testers mailing list