tls.exp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Expect script for FRV FDPIC TLS linker tests
  2. # Copyright (C) 2003-2022 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. if {![istarget frv*-*-*] || ![is_elf_format]} {
  22. return
  23. }
  24. set saved_ASFLAGS "$ASFLAGS"
  25. set ASFLAGS "$ASFLAGS -mfdpic"
  26. set saved_LDFLAGS "$LDFLAGS"
  27. set LDFLAGS "$LDFLAGS -melf32frvfd"
  28. run_ld_link_tests [list [list "tls-1-dep" "$LDFLAGS -shared" "" "" "tls-1-dep.s" [list] "tls-1-dep.so" ""]]
  29. run_dump_test "tls-static-1"
  30. run_dump_test "tls-dynamic-1"
  31. run_dump_test "tls-pie-1"
  32. run_dump_test "tls-shared-1-fail"
  33. run_dump_test "tls-shared-1"
  34. run_dump_test "tls-relax-static-1"
  35. run_dump_test "tls-relax-dynamic-1"
  36. run_dump_test "tls-relax-pie-1"
  37. run_dump_test "tls-relax-shared-1"
  38. run_dump_test "tls-dynamic-2"
  39. run_dump_test "tls-shared-2"
  40. run_dump_test "tls-initial-shared-2"
  41. run_dump_test "tls-relax-dynamic-2"
  42. run_dump_test "tls-relax-shared-2"
  43. run_dump_test "tls-relax-initial-shared-2"
  44. run_dump_test "tls-static-3"
  45. run_dump_test "tls-dynamic-3"
  46. run_dump_test "tls-pie-3"
  47. run_dump_test "tls-shared-3"
  48. run_dump_test "tls-relax-static-3"
  49. run_dump_test "tls-relax-dynamic-3"
  50. run_dump_test "tls-relax-pie-3"
  51. run_dump_test "tls-relax-shared-3"
  52. set LDFLAGS "$saved_LDFLAGS"
  53. set ASFLAGS "$saved_ASFLAGS"