Fixes
FAIL: Build mark-plt-1.so
where gcc is built with default --as-needed.
* testsuite/ld-x86-64/x86-64.exp (Build mark-plt-1.so): Pass
--no-as-needed.
(cherry picked from commit
60c95acdaca94eca79b81ec75bfab97826cc0271)
run_cc_link_tests [list \
[list \
"Build mark-plt-1.so" \
- "-shared -Wl,-z,mark-plt,-z,pack-relative-relocs" \
+ "-shared -Wl,--no-as-needed,-z,mark-plt,-z,pack-relative-relocs" \
"-fPIC" \
{ mark-plt-1.s } \
{{readelf {-W --version-info} mark-plt-1a.rd} \