diff options
Diffstat (limited to 'ld/testsuite/ld-elf/elf.exp')
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index e8b2d64..a5244e4 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -221,11 +221,6 @@ if { [istarget *-*-*linux*] set LDFLAGS $old_ldflags -# The following tests require running the executable generated by ld. -if ![isnative] { - return -} - if [check_gc_sections_available] { run_cc_link_tests { {"PR ld/13195" "-Wl,--gc-sections" "" @@ -234,23 +229,36 @@ if [check_gc_sections_available] { } set array_tests { - {"preinit array" "" "" {preinit.c} "preinit" "preinit.out"} - {"init array" "" "" {init.c} "init" "init.out"} - {"fini array" "" "" {fini.c} "fini" "fini.out"} - {"init array mixed" "" "" {init-mixed.c} "init-mixed" "init-mixed.out" "-I."} + {"preinit array" "" "" + {preinit.c} "preinit" "preinit.out"} + {"init array" "" "" + {init.c} "init" "init.out"} + {"fini array" "" "" + {fini.c} "fini" "fini.out"} + {"init array mixed" "" "" + {init-mixed.c} "init-mixed" "init-mixed.out" "-I."} } set array_tests_pie { - {"PIE preinit array" "-pie" "" {preinit.c} "preinit" "preinit.out" "-fPIE" } - {"PIE init array" "-pie" "" {init.c} "init" "init.out" "-fPIE"} - {"PIE fini array" "-pie" "" {fini.c} "fini" "fini.out" "-fPIE"} - {"PIE init array mixed" "-pie" "" {init-mixed.c} "init-mixed" "init-mixed.out" "-I. -fPIE"} - {"PIE PR ld/14525" "-pie" "" {pr14525.c} "pr14525" "pr14525.out" "-fPIE"} + {"PIE preinit array" "-pie" "" + {preinit.c} "preinit" "preinit.out" "-fPIE"} + {"PIE init array" "-pie" "" + {init.c} "init" "init.out" "-fPIE"} + {"PIE fini array" "-pie" "" + {fini.c} "fini" "fini.out" "-fPIE"} + {"PIE init array mixed" "-pie" "" + {init-mixed.c} "init-mixed" "init-mixed.out" "-I. -fPIE"} + {"PIE PR ld/14525" "-pie" "" + {pr14525.c} "pr14525" "pr14525.out" "-fPIE"} } set array_tests_static { - {"static preinit array" "-static" "" {preinit.c} "preinit" "preinit.out"} - {"static init array" "-static" "" {init.c} "init" "init.out"} - {"static fini array" "-static" "" {fini.c} "fini" "fini.out"} - {"static init array mixed" "-static" "" {init-mixed.c} "init-mixed" "init-mixed.out" "-I."} + {"static preinit array" "-static" "" + {preinit.c} "preinit" "preinit.out"} + {"static init array" "-static" "" + {init.c} "init" "init.out"} + {"static fini array" "-static" "" + {fini.c} "fini" "fini.out"} + {"static init array mixed" "-static" "" + {init-mixed.c} "init-mixed" "init-mixed.out" "-I."} } # NetBSD ELF systems do not currently support the .*_array sections. |