Line 1... |
Line 1... |
# Expect script for various ELF tests.
|
# Expect script for various ELF tests.
|
# Copyright 2002, 2003, 2005, 2007, 2009, 2010 Free Software Foundation, Inc.
|
# Copyright 2002, 2003, 2005, 2007, 2009, 2010, 2011
|
|
# Free Software Foundation, Inc.
|
#
|
#
|
# This file is part of the GNU Binutils.
|
# This file is part of the GNU Binutils.
|
#
|
#
|
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
Line 38... |
Line 39... |
|
|
if { [is_remote host] } then {
|
if { [is_remote host] } then {
|
remote_download host merge.ld
|
remote_download host merge.ld
|
}
|
}
|
|
|
|
if { ![istarget hppa64*-hpux*] } {
|
run_ld_link_tests {
|
run_ld_link_tests {
|
{"Build symbol3.a"
|
{"Build symbol3.a"
|
"" ""
|
"" ""
|
{symbol3.s} {} "symbol3.a"}
|
{symbol3.s} {} "symbol3.a"}
|
{"Build symbol3w.a"
|
{"Build symbol3w.a"
|
"" ""
|
"" ""
|
{symbol3w.s} {} "symbol3w.a"}
|
{symbol3w.s} {} "symbol3w.a"}
|
}
|
}
|
|
}
|
|
|
# Run a test to check linking a shared library with a broken linker
|
# Run a test to check linking a shared library with a broken linker
|
# script that accidentally marks dynamic sections as notes. The
|
# script that accidentally marks dynamic sections as notes. The
|
# resulting executable is not expected to work, but the linker
|
# resulting executable is not expected to work, but the linker
|
# should not seg-fault whilst creating the binary.
|
# should not seg-fault whilst creating the binary.
|
Line 64... |
Line 67... |
&& ! [istarget d30v-*-*]
|
&& ! [istarget d30v-*-*]
|
&& ! [istarget dlx-*-*]
|
&& ! [istarget dlx-*-*]
|
&& ! [istarget fr30-*-*]
|
&& ! [istarget fr30-*-*]
|
&& ! [istarget frv-*-*]
|
&& ! [istarget frv-*-*]
|
&& ! [istarget h8300-*-*]
|
&& ! [istarget h8300-*-*]
|
|
&& ! [istarget i860-*-*]
|
|
&& ! [istarget i960-*-*]
|
&& ! [istarget ip2k-*-*]
|
&& ! [istarget ip2k-*-*]
|
|
&& ! [istarget iq2000-*-*]
|
|
&& ! [istarget lm32-*-*]
|
|
&& ! [istarget m32c-*-*]
|
&& ! [istarget m32r-*-*]
|
&& ! [istarget m32r-*-*]
|
&& ! [istarget mcore*-*-*]
|
&& ! [istarget mcore*-*-*]
|
|
&& ! [istarget mep-*-*]
|
|
&& ! [istarget microblaze-*-*]
|
&& ! [istarget mn10200-*-*]
|
&& ! [istarget mn10200-*-*]
|
|
&& ! [istarget moxie-*-*]
|
|
&& ! [istarget ms1-*-*]
|
&& ! [istarget msp430-*-*]
|
&& ! [istarget msp430-*-*]
|
&& ! [istarget openrisc-*-*]
|
&& ! [istarget openrisc-*-*]
|
&& ! [istarget or32-*-*]
|
&& ! [istarget or32-*-*]
|
&& ! [istarget pj-*-*]
|
&& ! [istarget pj-*-*]
|
&& ! [istarget rx-*-*]
|
&& ! [istarget rx-*-*]
|
&& ! [istarget v850-*-*]
|
&& ! [istarget spu-*-*]
|
|
&& ! [istarget v850*-*-*]
|
|
&& ! [istarget xstormy16-*-*]
|
&& ! [istarget *-*-irix*]
|
&& ! [istarget *-*-irix*]
|
&& ! [istarget *-*-rtems] } {
|
&& ! [istarget *-*-rtems] } {
|
run_ld_link_tests {
|
run_ld_link_tests {
|
{"Build shared library for next test"
|
{"Build shared library for next test"
|
"-shared" "" "note-3.s" {} "note-3.so" }
|
"-shared" "" "note-3.s" {} "note-3.so" }
|
Line 145... |
Line 159... |
|
|
# NetBSD ELF systems do not currently support the .*_array sections.
|
# NetBSD ELF systems do not currently support the .*_array sections.
|
set xfails [list "*-*-netbsdelf*"]
|
set xfails [list "*-*-netbsdelf*"]
|
run_ld_link_exec_tests $xfails $array_tests
|
run_ld_link_exec_tests $xfails $array_tests
|
|
|
# Run PIE tests only on Linux.
|
if { [istarget *-*-linux*]
|
if { [istarget "*-*-linux*"] } {
|
|| [istarget *-*-gnu*] } {
|
run_ld_link_exec_tests $xfails $array_tests_pie
|
run_ld_link_exec_tests $xfails $array_tests_pie
|
}
|
}
|
|
|
# Be cautious to not XFAIL for *-*-linux-gnu*, *-*-kfreebsd-gnu*, etc.
|
# Be cautious to not XFAIL for *-*-linux-gnu*, *-*-kfreebsd-gnu*, etc.
|
switch -regexp $target_triplet {
|
switch -regexp $target_triplet {
|