Skip to content

Commit

Permalink
Fix test in CI (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyboycjr authored Jun 10, 2024
1 parent 48894e9 commit bf3073e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/experimental/examples/locate_symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use object::{Object, ObjectSection, ObjectSymbol, Relocation};
use rustc_demangle::demangle;

fn get_relocation_offset(elf: &ElfFile<FileHeader64<LittleEndian>>) -> Option<isize> {
let runtime_addr = (main as *const ()).expose_addr();
let runtime_addr = (main as *const ()).addr();
println!("addr of main: {:?}", main as *const ());

let sym_main = format!("{}::main", module_path!());
Expand Down

0 comments on commit bf3073e

Please sign in to comment.