default.exp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Copyright (C) 2012-2015 Free Software Foundation, Inc.
  2. # This program is free software; you can redistribute it and/or modify
  3. # it under the terms of the GNU General Public License as published by
  4. # the Free Software Foundation; either version 3 of the License, or
  5. # (at your option) any later version.
  6. #
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. #
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program; if not, write to the Free Software
  14. # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
  15. load_lib gas-defs.exp
  16. global AS
  17. if ![info exists AS] then {
  18. set AS [findfile $base_dir/../as-new "../as-new" [transform as]]
  19. }
  20. global ASFLAGS
  21. if ![info exists ASFLAGS] then {
  22. set ASFLAGS ""
  23. }
  24. if ![info exists OBJDUMP] then {
  25. set OBJDUMP [findfile $base_dir/../../binutils/objdump \
  26. $base_dir/../../binutils/objdump \
  27. [transform objdump]]
  28. }
  29. if ![info exists OBJDUMPFLAGS] then {
  30. set OBJDUMPFLAGS {}
  31. }
  32. if ![info exists NM] then {
  33. set NM [findfile $base_dir/../../binutils/nm-new \
  34. $base_dir/../../binutils/nm-new \
  35. [transform nm]]
  36. }
  37. if ![info exists NMFLAGS] then {
  38. set NMFLAGS {}
  39. }
  40. if ![info exists OBJCOPY] then {
  41. set OBJCOPY [findfile $base_dir/../../binutils/objcopy]
  42. }
  43. if ![info exists OBJCOPYFLAGS] then {
  44. set OBJCOPYFLAGS {}
  45. }
  46. if ![info exists READELF] then {
  47. set READELF [findfile $base_dir/../../binutils/readelf]
  48. }
  49. if ![info exists READELFFLAGS] then {
  50. set READELFFLAGS {}
  51. }
  52. if ![info exists ADDR2LINE] then {
  53. set ADDR2LINE [findfile $base_dir/../../binutils/addr2line]
  54. }
  55. if ![info exists ADDR2LINEFLAGS] then {
  56. set ADDR2LINEFLAGS {}
  57. }
  58. gas_init