Added ARCH_ZARCH as architecture option

SystemZ (z/os, mainframe) added as a constant to the arch.rb file.  This
along with other commits in this package will allow for development of
SystemZ (mainframe) based modules.
bug/bundler_fix
bigendian smalls 2015-09-28 09:36:31 -05:00
parent b206de7708
commit 258e743f82
No known key found for this signature in database
GPG Key ID: 59B4F1951D086E18
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,7 @@ module Arch
# #
require 'rex/arch/x86' require 'rex/arch/x86'
require 'rex/arch/sparc' require 'rex/arch/sparc'
require 'rex/arch/zarch'
# #
# This routine adjusts the stack pointer for a given architecture. # This routine adjusts the stack pointer for a given architecture.
@ -64,6 +65,8 @@ module Arch
[addr].pack('V') [addr].pack('V')
when ARCH_ARMBE when ARCH_ARMBE
[addr].pack('N') [addr].pack('N')
when ARCH_ZARCH
[addr].pack('Q>')
end end
end end
@ -95,6 +98,8 @@ module Arch
return ENDIAN_LITTLE return ENDIAN_LITTLE
when ARCH_ARMBE when ARCH_ARMBE
return ENDIAN_BIG return ENDIAN_BIG
when ARCH_ZARCH
return ENDIAN_BIG
end end
return ENDIAN_LITTLE return ENDIAN_LITTLE