(&mut self, file: &object::File, section: &object::Section)
| 56 | |
| 57 | impl 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 | |
| 72 | impl gimli::read::Relocate for &'_ RelocationMap { |
no outgoing calls
no test coverage detected