Skip to content

Commit

Permalink
linux: Add support for arm64be
Browse files Browse the repository at this point in the history
  • Loading branch information
WorksButNotTested authored and oleavr committed Jan 17, 2025
1 parent 7644f3d commit 95e5801
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/frida-helper-backend.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1996,7 +1996,7 @@ namespace Frida {
else
breakpoint_data = (uint8[]) &arm_breakpoint_val;
#elif ARM64
uint32 breakpoint_val = 0xd4200000U;
uint32 breakpoint_val = (0xd4200000U).to_little_endian ();
breakpoint_data = (uint8[]) &breakpoint_val;
#elif MIPS
uint32 breakpoint_val = 0x0000000dU;
Expand Down
Binary file added src/linux/helpers/bootstrapper-arm64be.bin
Binary file not shown.
Binary file added src/linux/helpers/loader-arm64be.bin
Binary file not shown.
2 changes: 2 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ if have_local_backend
endif
if host_lowlevel_abi == 'arm' and host_machine.endian() == 'big'
host_lowlevel_abi = 'armbe8'
elif host_lowlevel_abi == 'arm64' and host_machine.endian() == 'big'
host_lowlevel_abi = 'arm64be'
endif
fs = import('fs')
helper_backend_data = custom_target('frida-data-helper-backend',
Expand Down

0 comments on commit 95e5801

Please sign in to comment.