Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Aug 25, 2023
1 parent b389ca2 commit 2250af4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/backend/linux_raw/runtime/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ pub(crate) fn startup_tls_info() -> StartupTlsInfo {
}

if tls_phdr.is_null() {
StartupTlsInfo {
addr: null(),
mem_size: 0,
file_size: 0,
align: 1,
stack_size: 0,
}
StartupTlsInfo {
addr: null(),
mem_size: 0,
file_size: 0,
align: 1,
stack_size: 0,
}
} else {
StartupTlsInfo {
addr: base.cast::<u8>().add((*tls_phdr).p_vaddr).cast(),
mem_size: (*tls_phdr).p_memsz,
file_size: (*tls_phdr).p_filesz,
align: (*tls_phdr).p_align,
stack_size,
}
StartupTlsInfo {
addr: base.cast::<u8>().add((*tls_phdr).p_vaddr).cast(),
mem_size: (*tls_phdr).p_memsz,
file_size: (*tls_phdr).p_filesz,
align: (*tls_phdr).p_align,
stack_size,
}
}
}
}
Expand Down

0 comments on commit 2250af4

Please sign in to comment.