Pass -mrelax-relocations=yes to $(TEST_AS)
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 16 Feb 2016 13:55:11 +0000 (05:55 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 16 Feb 2016 14:00:03 +0000 (06:00 -0800)
commit1cd17042aad6b0c2e10537bb400a496958178029
treeba3834d91d6fef33e99fe16b4d9ea69164eb41d6
parentb442c911ee0e7444ee63edcc7da26089f6023cb6
Pass -mrelax-relocations=yes to $(TEST_AS)

x86_64_mov_to_lea5.o and x86_64_mov_to_lea6.o must be assembled with
-mrelax-relocations=yes since when assembler is configured with
--disable-x86-relax-relocations, R_X86_64_GOTPCRELX relocation won't
be generated.  This linker optimization requires R_X86_64_GOTPCRELX
relocation.

This patch also removed the duplicated x86_64_overflow_pc32.o target.

* testsuite/Makefile.am (x86_64_mov_to_lea5.o): Pass
-mrelax-relocations=yes to $(TEST_AS).
(x86_64_mov_to_lea6.o): Likewise.
(x86_64_overflow_pc32.o): Remove duplicated target.
* testsuite/Makefile.in: Regenerated.
gold/ChangeLog
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in