Repository navigation
Conversation
- keep call sites inside sized functions as reference sources - support R_386_PLT32 - wrap absolute relocation values to the field width - ignore COFF debug symbols instead of placing them as common storage - only claim COFF input whose section and symbol tables fit the file - resolve weak external chains in linear time and drop them from imports - place unresolved externals after the image instead of past MAX_IMAGE_SIZE - report a relocation count in xmetadata instead of every record - read the ELF OS ABI from the header instead of a second parse
Contributor
Author
|
Pushed 4408f0b after another review pass over the loader:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Adds analysis of little-endian x86/x64 ELF relocatable objects (.o and uncompressed .ko) and conventional COFF .obj files. Static archives remain unsupported.
The loader assigns deterministic analysis addresses, resolves section-relative symbols and supported relocations, and preserves the original input hash. Optional xmetadata.object_image records the derived layout, aliases, known function sizes and unresolved external references.
NOP padding is distinguished from function bodies using bounded byte inspection and symbol extents. Known object-function extents prevent interior prologues from splitting their owners. Unsupported relocations and object variants are rejected explicitly; allocation and table limits remain bounded. Existing linked-image loaders, CIL support and hash-escape versions are unchanged.
How it was verified
No analyzed binary was executed or loaded into a kernel. No binary fixture, corpus data or workflow change is included. Supported relocation subsets and limitations are documented in docs/OBJECT_FILES.md.