Repository navigation
Conversation
This was referenced Oct 16, 2026
Merged
Contributor
|
Interesujaca zmiana, ale zbyt powazna, aby ja wprowadzac tak "przy okazji". No i tez nie rozwiazuje wszystkich problemow. Ponadto jej implementacja jest specyficzna dla ARM, a jak dodamy np ESP to tez bedziemy miec te same problemy |
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.
Modules compiled as PIC can still contain absolute pointers in static structures and compiler-generated aggregate constants. A TLS entropy callback on Cortex-M7 retained its link offset (0x151), and crypto dispatch tables had the same issue. This adds opt-in, ELF-derived pointer relocations for ARM ELF32 and x86-64 ELF64.
dmod_enable_pointer_relocations()preserves linker relocation metadata, disables unsafe static-link relaxation, and appends an explicit fixup table. The runtime validates every record before applying it; crossplatform inspection validates without writing native pointers. Existing header/API/GOT/license fixups remain separate. Legacy modules retain their format. Older loaders reject the extended header, so consumers must update runtime and host metadata tools together. The installed SDK includes the generator.Validation: all 32 native test executables pass, including four new loader cases; three integration tests compile actual ARM/x86-64 aggregates and check the relocation metadata. The real dmtls module initializes and parses its CA on x86-64. STM32F746G-DISCO completes TLS 1.2/1.3 encrypted exchanges and rejects five authentication/time failure cases with the updated loader.
Hardware TLS validation: choco-technologies/dmtls#1; boot integration: choco-technologies/dmod-boot#134.