Method
write_offset
(&mut self, val: usize, section: SectionId, size: u8)
Source from the content-addressed store, hash-verified
| 108 | } |
| 109 | |
| 110 | fn write_offset(&mut self, val: usize, section: SectionId, size: u8) -> WriteResult<()> { |
| 111 | let offset = self.len() as u32; |
| 112 | let target = DwarfSectionRelocTarget::Section(section.name()); |
| 113 | self.relocs.push(DwarfSectionReloc { |
| 114 | target, |
| 115 | offset, |
| 116 | size, |
| 117 | addend: val as i32, |
| 118 | }); |
| 119 | self.write_udata(val as u64, size) |
| 120 | } |
| 121 | |
| 122 | fn write_offset_at( |
| 123 | &mut self, |
Callers
nothing calls this directly
Tested by
no test coverage detected