ld: Pass -nostdlib to compiler with -r
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 19 Jul 2022 01:49:27 +0000 (18:49 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 19 Jul 2022 01:54:20 +0000 (18:54 -0700)
commit76e4fa70e79ee959c0e11eaacd4cf863291b1ddb
tree5c86ab4cf920637e2838cd178f691cc3208adbf7
parentbd0736124c20950ac353f01e5029b7cb5d8a7010
ld: Pass -nostdlib to compiler with -r

Pass -nostdlib to compiler with -r to avoid unnecessary .o file and
libraries.

PR ld/29377
* testsuite/ld-elf/linux-x86.exp: Pass -nostdlib with -r.
ld/testsuite/ld-elf/linux-x86.exp