(self)
| 238 | _got_entries: set[int] = dataclasses.field(default_factory=set, init=False) |
| 239 | |
| 240 | def convert_labels_to_relocations(self) -> None: |
| 241 | for name, hole_plus in self.symbols.items(): |
| 242 | if isinstance(name, str) and "_JIT_RELOCATION_" in name: |
| 243 | _, offset = hole_plus |
| 244 | reloc, target, _ = name.split("_JIT_RELOCATION_") |
| 245 | value, symbol = symbol_to_value(target) |
| 246 | hole = Hole( |
| 247 | int(offset), typing.cast(_schema.HoleKind, reloc), value, symbol, 0 |
| 248 | ) |
| 249 | self.code.holes.append(hole) |
| 250 | |
| 251 | def process_relocations(self, known_symbols: dict[str, int]) -> None: |
| 252 | """Fix up all GOT and internal relocations for this stencil group.""" |
no test coverage detected