Fix more BPF alignment issues on arm64

This commit is contained in:
Michael Vines
2021-11-30 10:41:15 -08:00
parent 8cf36e5cb0
commit 098dba607a
3 changed files with 13 additions and 16 deletions

View File

@@ -22,7 +22,7 @@ use solana_sdk::{
account_info::AccountInfo,
blake3, bpf_loader, bpf_loader_deprecated, bpf_loader_upgradeable,
clock::Clock,
entrypoint::{MAX_PERMITTED_DATA_INCREASE, SUCCESS},
entrypoint::{BPF_ALIGN_OF_U128, MAX_PERMITTED_DATA_INCREASE, SUCCESS},
epoch_schedule::EpochSchedule,
feature_set::{
blake3_syscall_enabled, demote_program_write_locks, disable_fees_sysvar,
@@ -747,7 +747,7 @@ impl SyscallObject<BpfError> for SyscallAllocFree {
result: &mut Result<u64, EbpfError<BpfError>>,
) {
let align = if self.aligned {
align_of::<u128>()
BPF_ALIGN_OF_U128
} else {
align_of::<u8>()
};