Work around gcc10 FAIL: S-records with constructors
authorAlan Modra <amodra@gmail.com>
Sat, 21 Sep 2019 08:43:52 +0000 (18:13 +0930)
committerAlan Modra <amodra@gmail.com>
Sun, 22 Sep 2019 11:43:10 +0000 (21:13 +0930)
commita13ba30840ba7a8450dcb4edd356de61fcb89130
treea7fac2ef7181f54a8d2a606a3417e782049cb000
parent77d036789aab73c90dc7f4c798f34748b03de726
Work around gcc10 FAIL: S-records with constructors

gcc10 on x86_64 and powerpc64le recognises that the loop in
Foo::operator= can be turned into a call to memmove, which then
results in an undefined symbol when linking.  Avoid that by making the
loop smaller.

* testsuite/ld-srec/sr3.cc (FOO_MSG_LEN): Set to 4.
ld/ChangeLog
ld/testsuite/ld-srec/sr3.cc