* ld-pie/weakundef-data.c: Fix the typo.
* ld-pie/pie.c: New file. * ld-pie/pie.exp: Check if compiler supports -pie.
PR ld/2218 * ld-pie/pie.exp: Add the weak undefined data test. * ld-pie/weakundef-data.c: New file.
PR ld/2218 * ld-pie/pie.exp: New file. * ld-pie/weakundef.c: Likewise. * ld-pie/weakundef.out: Likewise. * lib/ld-lib.exp (run_ld_link_exec_tests): Fix nesting. Support building PIE and shared library.