MCPcopy Index your code
hub / github.com/python/cpython / _emit_global_offset_table

Method _emit_global_offset_table

Tools/jit/_stencils.py:369–376  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

367 self.data.body.extend([0] * 8)
368
369 def _emit_global_offset_table(self) -> None:
370 for hole in self.code.holes:
371 if hole.value is HoleValue.GOT:
372 _got_hole = Hole(0, "R_X86_64_64", hole.value, None, hole.addend)
373 _got_hole.func = "patch_got_symbol"
374 _got_hole.custom_location = "state"
375 if _got_hole not in self.data.holes:
376 self.data.holes.append(_got_hole)
377
378 def _get_symbol_mask(self, ordinals: set[int]) -> str:
379 bitmask: int = 0

Callers 1

process_relocationsMethod · 0.95

Calls 2

HoleClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected