Skip to content

Commit ba55e1c

Browse files
authored
Merge pull request #936 from Homebrew/CPU_ARCH_ABI64_32
2 parents 724ea11 + 1bb7c21 commit ba55e1c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/macho/headers.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ module Headers
6060
MH_CIGAM_64 => "MH_CIGAM_64",
6161
}.freeze
6262

63-
# mask for CPUs with 64-bit architectures (when running a 64-bit ABI?)
63+
# mask for 64-bit CPU architectures with 64-bit types
6464
# @api private
6565
CPU_ARCH_ABI64 = 0x01000000
6666

67-
# mask for CPUs with 64-bit architectures (when running a 32-bit ABI?)
67+
# mask for 64-bit CPU architectures with 32-bit types (ILP32)
6868
# @see https://github.com/Homebrew/ruby-macho/issues/113
6969
# @api private
70-
CPU_ARCH_ABI32 = 0x02000000
70+
CPU_ARCH_ABI64_32 = 0x02000000
7171

7272
# any CPU (unused?)
7373
# @api private
@@ -97,9 +97,10 @@ module Headers
9797
# @api private
9898
CPU_TYPE_ARM64 = (CPU_TYPE_ARM | CPU_ARCH_ABI64)
9999

100-
# 64-bit ARM compatible CPUs (running in 32-bit mode?)
100+
# 64-bit ARM compatible CPUs (with 32-bit types)
101101
# @see https://github.com/Homebrew/ruby-macho/issues/113
102-
CPU_TYPE_ARM64_32 = (CPU_TYPE_ARM | CPU_ARCH_ABI32)
102+
# @api private
103+
CPU_TYPE_ARM64_32 = (CPU_TYPE_ARM | CPU_ARCH_ABI64_32)
103104

104105
# PowerPC compatible CPUs
105106
# @api private

0 commit comments

Comments
 (0)