mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.13] GH-129805: Clean up some changes from GH-129806 (GH-133540) (#141165)
Co-authored-by: Brandt Bucher <brandt@python.org>
This commit is contained in:
parent
b2e4234af6
commit
73d5de1139
1 changed files with 4 additions and 13 deletions
|
|
@ -102,7 +102,7 @@ def _handle_section(self, section: _S, group: _stencils.StencilGroup) -> None:
|
||||||
raise NotImplementedError(type(self))
|
raise NotImplementedError(type(self))
|
||||||
|
|
||||||
def _handle_relocation(
|
def _handle_relocation(
|
||||||
self, base: int, relocation: _R, raw: bytes | bytearray
|
self, base: int, relocation: _R, raw: bytearray
|
||||||
) -> _stencils.Hole:
|
) -> _stencils.Hole:
|
||||||
raise NotImplementedError(type(self))
|
raise NotImplementedError(type(self))
|
||||||
|
|
||||||
|
|
@ -275,10 +275,7 @@ def _unwrap_dllimport(self, name: str) -> tuple[_stencils.HoleValue, str | None]
|
||||||
return _stencils.symbol_to_value(name)
|
return _stencils.symbol_to_value(name)
|
||||||
|
|
||||||
def _handle_relocation(
|
def _handle_relocation(
|
||||||
self,
|
self, base: int, relocation: _schema.COFFRelocation, raw: bytearray
|
||||||
base: int,
|
|
||||||
relocation: _schema.COFFRelocation,
|
|
||||||
raw: bytes | bytearray,
|
|
||||||
) -> _stencils.Hole:
|
) -> _stencils.Hole:
|
||||||
match relocation:
|
match relocation:
|
||||||
case {
|
case {
|
||||||
|
|
@ -373,10 +370,7 @@ def _handle_section(
|
||||||
}, section_type
|
}, section_type
|
||||||
|
|
||||||
def _handle_relocation(
|
def _handle_relocation(
|
||||||
self,
|
self, base: int, relocation: _schema.ELFRelocation, raw: bytearray
|
||||||
base: int,
|
|
||||||
relocation: _schema.ELFRelocation,
|
|
||||||
raw: bytes | bytearray,
|
|
||||||
) -> _stencils.Hole:
|
) -> _stencils.Hole:
|
||||||
symbol: str | None
|
symbol: str | None
|
||||||
match relocation:
|
match relocation:
|
||||||
|
|
@ -452,10 +446,7 @@ def _handle_section(
|
||||||
stencil.holes.append(hole)
|
stencil.holes.append(hole)
|
||||||
|
|
||||||
def _handle_relocation(
|
def _handle_relocation(
|
||||||
self,
|
self, base: int, relocation: _schema.MachORelocation, raw: bytearray
|
||||||
base: int,
|
|
||||||
relocation: _schema.MachORelocation,
|
|
||||||
raw: bytes | bytearray,
|
|
||||||
) -> _stencils.Hole:
|
) -> _stencils.Hole:
|
||||||
symbol: str | None
|
symbol: str | None
|
||||||
match relocation:
|
match relocation:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue