Skip to content

Comments

Polymorphic Flag Sources#4418

Draft
thestr4ng3r wants to merge 1 commit intodevfrom
dist-polymorphic-flag-source
Draft

Polymorphic Flag Sources#4418
thestr4ng3r wants to merge 1 commit intodevfrom
dist-polymorphic-flag-source

Conversation

@thestr4ng3r
Copy link
Member

@thestr4ng3r thestr4ng3r commented Apr 5, 2024

This abstracts away the usage of flags from their storage. It enables plugin-like providers for flags, e.g. from symbols, debug info, sections, etc. without the need to "set" flags in a side-effectful way as it is done currently, which has multiple issues:

  • of a lot of redundant info taking up memory space
  • flags are hard to impossible to trace back to their origins in order to realize things like rebasing or unloading/loading new binaries dynamically

The new approach can solve this cleanly as flags are calculated on the fly.

Accessing properties through functions allows the implementation to be
swapped out, which is the plan for polymorphic flag sources.
@thestr4ng3r thestr4ng3r force-pushed the dist-polymorphic-flag-source branch from 0bb2905 to 86ca00b Compare April 5, 2024 17:40
@notxvilka notxvilka mentioned this pull request Aug 24, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant