native/abnativeelf: make symbol stripping and debug info splitting orthogonal - #102
Draft
CSharperMantle wants to merge 1 commit into
Draft
native/abnativeelf: make symbol stripping and debug info splitting orthogonal#102CSharperMantle wants to merge 1 commit into
CSharperMantle wants to merge 1 commit into
Conversation
CSharperMantle
marked this pull request as draft
July 30, 2026 08:08
CSharperMantle
force-pushed
the
feat-orthogonal-split-and-strip
branch
from
August 5, 2026 12:36
ad67161 to
9edd4c2
Compare
…thogonal
After this refactor, the semantics of ABSPLITDBG and ABSTRIP are:
ABSPLITDBG:
Split the debug information off the original ELF into an
individual, new ELF object. The original ELF is also
mutated in this case.
This translates to "-d" of abelf_copy_dbg{,_parallel}.
ABSTRIP:
Strip off all symbols from the original ELF.
This translates to "-s" of abelf_copy_dbg{,_parallel}.
Any combinations of the two flags are now supported, thus making it
possible to create ELFs with symbols retained and debug info separated.
For Microsoft .{pdb,dbg} files, ABSPLITDBG move them into the desired
directory, while ABSTRIP does nothing.
CSharperMantle
force-pushed
the
feat-orthogonal-split-and-strip
branch
from
August 7, 2026 13:30
9edd4c2 to
3186884
Compare
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.
Resolves #99.
After this refactor, the semantics of
ABSPLITDBGandABSTRIPare:ABSPLITDBG: Split the debug information off the original ELF into an individual, new ELF object. This translates to-dofabelf_copy_dbg{,_parallel}.ABSTRIP: Strip off all symbols from the original ELF. This translates to-sofabelf_copy_dbg{,_parallel}.All combinations of the two flags are now supported, thus making it possible to create ELFs with symbols retained and debug info separated.
However, applying this requires a survey of existing callers and definitions of these variables, as discussed in #99.