fdpic.exp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Expect script for FRV FDPIC 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_dump_test "fdpic-static-1"
  29. run_dump_test "fdpic-pie-1"
  30. run_dump_test "fdpic-shared-1"
  31. run_dump_test "fdpic-static-2"
  32. run_dump_test "fdpic-pie-2"
  33. run_dump_test "fdpic-shared-2-fail"
  34. run_dump_test "fdpic-shared-2"
  35. run_dump_test "fdpic-shared-local-2"
  36. run_dump_test "fdpic-shared-3"
  37. run_dump_test "fdpic-shared-4"
  38. run_dump_test "fdpic-static-5"
  39. run_dump_test "fdpic-pie-5"
  40. run_dump_test "fdpic-shared-5"
  41. run_dump_test "fdpic-static-6"
  42. run_dump_test "fdpic-pie-6-fail"
  43. run_dump_test "fdpic-pie-6"
  44. run_dump_test "fdpic-shared-6-fail"
  45. run_dump_test "fdpic-shared-6"
  46. run_dump_test "fdpic-static-7"
  47. run_dump_test "fdpic-pie-7"
  48. run_dump_test "fdpic-shared-7"
  49. run_dump_test "fdpic-static-8"
  50. run_dump_test "fdpic-pie-8"
  51. run_dump_test "fdpic-shared-8-fail"
  52. run_dump_test "fdpic-shared-8"
  53. run_dump_test "fdpic-shared-local-8"
  54. set LDFLAGS "$saved_LDFLAGS"
  55. set ASFLAGS "$saved_ASFLAGS"