Skip to content

Commit 97a21b7

Browse files
committed
feat(env): don't use explicit TLS info from loader
1 parent f7d012c commit 97a21b7

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/env/executable.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ pub fn tls_info() -> Option<TlsInfo> {
7676
align: tls_phdr.p_align,
7777
};
7878

79-
assert!(tls_info_eq(
80-
&tls_info,
81-
&super::boot_info().load_info.tls_info.unwrap()
82-
));
83-
8479
Some(tls_info)
8580
}
8681

@@ -159,10 +154,3 @@ impl Elf64_EhdrExt for Elf64_Ehdr {
159154
unsafe { slice::from_raw_parts(ptr, len) }
160155
}
161156
}
162-
163-
fn tls_info_eq(this: &TlsInfo, other: &TlsInfo) -> bool {
164-
this.start == other.start
165-
&& this.filesz == other.filesz
166-
&& this.memsz == other.memsz
167-
&& this.align == other.align
168-
}

0 commit comments

Comments
 (0)