Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support AT_SYSINFO and AT_SYSINFO_EHDR on all architectures #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use core::marker::PhantomData;

// Convert a usize (pointer) to a string.
#[allow(clippy::integer_arithmetic)]

Check failure on line 8 in src/reader.rs

View workflow job for this annotation

GitHub Actions / cargo clippy

lint `clippy::integer_arithmetic` has been renamed to `clippy::arithmetic_side_effects`
unsafe fn u2s<'a>(ptr: usize) -> core::result::Result<&'a str, core::str::Utf8Error> {
let ptr = ptr as *const u8;

Expand Down Expand Up @@ -78,7 +78,7 @@
impl<'a> Reader<'a, Arg> {
/// Rewind to the start of this section
#[inline]
#[allow(clippy::integer_arithmetic)]

Check failure on line 81 in src/reader.rs

View workflow job for this annotation

GitHub Actions / cargo clippy

lint `clippy::integer_arithmetic` has been renamed to `clippy::arithmetic_side_effects`
pub fn rewind(&mut self) {
// Go to the end of this section.
while unsafe { *self.stack } != 0 {
Expand Down Expand Up @@ -224,11 +224,7 @@
AT_RANDOM => Entry::Random(unsafe { *(val as *const [u8; 16]) }),
AT_HWCAP2 => Entry::HwCap2(val),
AT_EXECFN => Entry::ExecFilename(unsafe { u2s(val).ok()? }),

#[cfg(target_arch = "x86")]
AT_SYSINFO => Entry::SysInfo(val),

#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
AT_SYSINFO_EHDR => Entry::SysInfoEHdr(val),

_ => {
Expand Down
Loading