Skip to content

native/abnativeelf: make symbol stripping and debug info splitting orthogonal - #102

Draft
CSharperMantle wants to merge 1 commit into
masterfrom
feat-orthogonal-split-and-strip
Draft

native/abnativeelf: make symbol stripping and debug info splitting orthogonal#102
CSharperMantle wants to merge 1 commit into
masterfrom
feat-orthogonal-split-and-strip

Conversation

@CSharperMantle

Copy link
Copy Markdown
Member

Resolves #99.

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. 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}.

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.

@CSharperMantle
CSharperMantle marked this pull request as draft July 30, 2026 08:08
@CSharperMantle
CSharperMantle force-pushed the feat-orthogonal-split-and-strip branch from ad67161 to 9edd4c2 Compare August 5, 2026 12:36
…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
CSharperMantle force-pushed the feat-orthogonal-split-and-strip branch from 9edd4c2 to 3186884 Compare August 7, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature RFC: Orthogonalize ABSPLITDBG and ABSTRIP

1 participant