We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48894e9 commit bf3073eCopy full SHA for bf3073e
src/experimental/examples/locate_symbol.rs
@@ -8,7 +8,7 @@ use object::{Object, ObjectSection, ObjectSymbol, Relocation};
8
use rustc_demangle::demangle;
9
10
fn get_relocation_offset(elf: &ElfFile<FileHeader64<LittleEndian>>) -> Option<isize> {
11
- let runtime_addr = (main as *const ()).expose_addr();
+ let runtime_addr = (main as *const ()).addr();
12
println!("addr of main: {:?}", main as *const ());
13
14
let sym_main = format!("{}::main", module_path!());
0 commit comments