MCPcopy Index your code
hub / github.com/encounter/objdiff / add

Method add

objdiff-core/src/obj/dwarf2.rs:58–69  ·  view source on GitHub ↗
(&mut self, file: &object::File, section: &object::Section)

Source from the content-addressed store, hash-verified

56
57impl RelocationMap {
58 fn add(&mut self, file: &object::File, section: &object::Section) {
59 for (offset, relocation) in section.relocations() {
60 if let Err(e) = self.0.add(file, offset, relocation) {
61 log::error!(
62 "Relocation error for section {} at offset 0x{:08x}: {}",
63 section.name().unwrap(),
64 offset,
65 e
66 );
67 }
68 }
69 }
70}
71
72impl gimli::read::Relocate for &'_ RelocationMap {

Callers 4

project_override_badgeFunction · 0.80
on_new_frameMethod · 0.80
load_file_sectionFunction · 0.80
build_globsetFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected