1# Expect script for FRV FDPIC TLS linker tests 2# Copyright (C) 2003-2014 Free Software Foundation, Inc. 3# 4# This file is part of the GNU Binutils. 5# 6# This program is free software; you can redistribute it and/or modify 7# it under the terms of the GNU General Public License as published by 8# the Free Software Foundation; either version 3 of the License, or 9# (at your option) any later version. 10# 11# This program is distributed in the hope that it will be useful, 12# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14# GNU General Public License for more details. 15# 16# You should have received a copy of the GNU General Public License 17# along with this program; if not, write to the Free Software 18# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 19# MA 02110-1301, USA. 20# 21 22if {![istarget frv*-*-*] || ![is_elf_format]} { 23 return 24} 25 26global ASFLAGS 27set saved_ASFLAGS "$ASFLAGS" 28set ASFLAGS "$ASFLAGS -mfdpic" 29 30global LDFLAGS 31set saved_LDFLAGS "$LDFLAGS" 32set LDFLAGS "$LDFLAGS -melf32frvfd" 33 34run_ld_link_tests [list [list "tls-1-dep" "$LDFLAGS -shared" "" "" "tls-1-dep.s" [list] "tls-1-dep.so" ""]] 35run_dump_test "tls-static-1" 36run_dump_test "tls-dynamic-1" 37run_dump_test "tls-pie-1" 38run_dump_test "tls-shared-1-fail" 39run_dump_test "tls-shared-1" 40 41run_dump_test "tls-relax-static-1" 42run_dump_test "tls-relax-dynamic-1" 43run_dump_test "tls-relax-pie-1" 44run_dump_test "tls-relax-shared-1" 45 46run_dump_test "tls-dynamic-2" 47run_dump_test "tls-shared-2" 48run_dump_test "tls-initial-shared-2" 49 50run_dump_test "tls-relax-dynamic-2" 51run_dump_test "tls-relax-shared-2" 52run_dump_test "tls-relax-initial-shared-2" 53 54run_dump_test "tls-static-3" 55run_dump_test "tls-dynamic-3" 56run_dump_test "tls-pie-3" 57run_dump_test "tls-shared-3" 58 59run_dump_test "tls-relax-static-3" 60run_dump_test "tls-relax-dynamic-3" 61run_dump_test "tls-relax-pie-3" 62run_dump_test "tls-relax-shared-3" 63 64set LDFLAGS "$saved_LDFLAGS" 65set ASFLAGS "$saved_ASFLAGS" 66