1# Expect script for FRV FDPIC TLS linker tests 2# Copyright (C) 2003-2020 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 26set saved_ASFLAGS "$ASFLAGS" 27set ASFLAGS "$ASFLAGS -mfdpic" 28 29set saved_LDFLAGS "$LDFLAGS" 30set LDFLAGS "$LDFLAGS -melf32frvfd" 31 32run_ld_link_tests [list [list "tls-1-dep" "$LDFLAGS -shared" "" "" "tls-1-dep.s" [list] "tls-1-dep.so" ""]] 33run_dump_test "tls-static-1" 34run_dump_test "tls-dynamic-1" 35run_dump_test "tls-pie-1" 36run_dump_test "tls-shared-1-fail" 37run_dump_test "tls-shared-1" 38 39run_dump_test "tls-relax-static-1" 40run_dump_test "tls-relax-dynamic-1" 41run_dump_test "tls-relax-pie-1" 42run_dump_test "tls-relax-shared-1" 43 44run_dump_test "tls-dynamic-2" 45run_dump_test "tls-shared-2" 46run_dump_test "tls-initial-shared-2" 47 48run_dump_test "tls-relax-dynamic-2" 49run_dump_test "tls-relax-shared-2" 50run_dump_test "tls-relax-initial-shared-2" 51 52run_dump_test "tls-static-3" 53run_dump_test "tls-dynamic-3" 54run_dump_test "tls-pie-3" 55run_dump_test "tls-shared-3" 56 57run_dump_test "tls-relax-static-3" 58run_dump_test "tls-relax-dynamic-3" 59run_dump_test "tls-relax-pie-3" 60run_dump_test "tls-relax-shared-3" 61 62set LDFLAGS "$saved_LDFLAGS" 63set ASFLAGS "$saved_ASFLAGS" 64