Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic COFF (.obj) file support #419

Merged
merged 2 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
BackedCGC,
Backend,
Blob,
Coff,
ELFCore,
ExceptionHandling,
FunctionHint,
Expand Down Expand Up @@ -81,6 +82,7 @@
"BackedCGC",
"Backend",
"Blob",
"Coff",
"ELFCore",
"ExceptionHandling",
"FunctionHint",
Expand Down
2 changes: 2 additions & 0 deletions cle/backends/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from .backend import ALL_BACKENDS, Backend, ExceptionHandling, FunctionHint, FunctionHintSource, register_backend
from .blob import Blob
from .cgc import CGC, BackedCGC
from .coff import Coff
from .elf import ELF, ELFCore, MetaELF
from .ihex import Hex
from .java.apk import Apk
Expand Down Expand Up @@ -32,6 +33,7 @@
"ELFCore",
"MetaELF",
"PE",
"Coff",
"Blob",
"CGC",
"BackedCGC",
Expand Down
2 changes: 1 addition & 1 deletion cle/backends/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def __init__(
self._segments: Regions["Segment"] = Regions() # List of segments
self._sections: Regions["Section"] = Regions() # List of sections
self.sections_map = {} # Mapping from section name to section
self.symbols: "List[Symbol]" = sortedcontainers.SortedKeyList(key=self._get_symbol_relative_addr)
self.symbols = sortedcontainers.SortedKeyList(key=self._get_symbol_relative_addr)
self.imports: typing.Dict[str, "Relocation"] = {}
self.resolved_imports = []
self.relocs: "List[Relocation]" = []
Expand Down
Loading
Loading